Skip to content

Firsttimerunning file #2

Open
ghost opened this issue Sep 6, 2016 · 2 comments
Open

Firsttimerunning file #2

ghost opened this issue Sep 6, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 6, 2016

The file /tmp/firsttimerunning that is in container_files/start.sh never delete this files so everytime that you start your docker container will create it again and sometime have errors.

You need to add those lines:
echo "Done Fixing Permissions" >> $log
rm -f /tmp/firsttimerunning
/usr/bin/mysqld_safe --init-file="$tempSqlFile" --datadir="$MYSQL_DATADIR"
else
echo "Not Creating a MariaDB - Using Existing from DataDir: $MYSQL_DATADIR" >> $log
rm -f /tmp/firsttimerunning
/usr/bin/mysqld_safe --datadir="$MYSQL_DATADIR"
fi

Because if you run it after mysql command never execute rm -rf because mysql is in foreground.

@ghost
Copy link
Author

ghost commented Sep 15, 2016

@rino You had a PR that closed this, right?

@ghost
Copy link
Author

ghost commented Sep 15, 2016

yes it was solved

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants