You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: