Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #3 from docker/fixstarting
Remove the firsttimerunning file after first creation.
Jim Van Fleet committed Sep 6, 2016
2 parents 0955c61 + 6d1f288 commit 7aaa4ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions container_files/bin/start.sh
@@ -67,14 +67,14 @@ if [ -e "/tmp/firsttimerunning" ]; then
/opt/bin/fix-permissions.sh /var/log/mariadb/ >> $log
/opt/bin/fix-permissions.sh /var/run/ >> $log
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

rm -f /tmp/firsttimerunning
else
echo "Using Existing MariaDB from DataDir: $MYSQL_DATADIR" >> $log
/usr/bin/mysqld_safe --datadir="$MYSQL_DATADIR"

0 comments on commit 7aaa4ed

Please sign in to comment.