Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove the firsttimerunning file after first creation.
villadalmine committed Sep 6, 2016
1 parent 0955c61 commit 6d1f288
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 6d1f288

Please sign in to comment.