Improve Appliance images. Possible to mount datadir

This commit is contained in:
root
2019-01-13 00:12:54 +02:00
parent 854af68e9e
commit baddcb523c
39 changed files with 1133 additions and 34 deletions

View File

@ -75,7 +75,7 @@ configure_db_mysql() {
chown -R mysql:mysql "$MYSQL_DATA_DIR"
echo "** Installing initial MySQL database schemas"
mysql_install_db --user=mysql 2>&1 1>/dev/null
mysql_install_db --user=mysql --datadir="$MYSQL_DATA_DIR" 2>&1
else
echo "**** MySQL data directory is not empty. Using already existing installation."
chown -R mysql:mysql "$MYSQL_DATA_DIR"