Force a mariadb root password
This commit is contained in:
parent
26309e6d02
commit
d711b01a3e
|
@ -2234,6 +2234,7 @@ function install_mariadb {
|
|||
debconf-set-selections <<< "mariadb-server mariadb-server/root_password password $MARIADB_PASSWORD"
|
||||
debconf-set-selections <<< "mariadb-server mariadb-server/root_password_again password $MARIADB_PASSWORD"
|
||||
apt-get -y --force-yes install mariadb-server
|
||||
mysqladmin -u root password "$MARIADB_PASSWORD"
|
||||
echo 'install_mariadb' >> $COMPLETION_FILE
|
||||
}
|
||||
|
||||
|
@ -2287,7 +2288,6 @@ function install_gnu_social {
|
|||
CREATE USER 'gnusocialadmin'@'localhost' IDENTIFIED BY '$MICROBLOG_ADMIN_PASSWORD';
|
||||
GRANT ALL PRIVILEGES ON gnusocial.* TO 'gnusocialadmin'@'localhost';
|
||||
quit" > $INSTALL_DIR/batch.sql
|
||||
echo $INSTALL_DIR/batch.sql
|
||||
chmod 600 $INSTALL_DIR/batch.sql
|
||||
mysql -u root --password="$MARIADB_PASSWORD" < $INSTALL_DIR/batch.sql
|
||||
shred -zu $INSTALL_DIR/batch.sql
|
||||
|
|
Loading…
Reference in New Issue