Skip to content

Attempt to fix the build (wrong charset) #11

merged 1 commit into from Oct 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Attempt to fix the build (wrong charset)
mederly committed Oct 13, 2018
commit d6783ca5bef95943fbf39b6fff0d8811c9fb5dd9
7 changes: 3 additions & 4 deletions container_files/bin/start.sh
@@ -16,10 +16,9 @@ if [ -e "/tmp/firsttimerunning" ]; then
fi

echo "Setting DataDir: $MYSQL_DATADIR" >> $log
sed -e "s=\${MYSQL_DATADIR}=$MYSQL_DATADIR=" < /etc/my.cnf > /etc/my.cnf

echo "/etc/my.cnf is:"
cat /etc/my.cnf
sed -e "s=\${MYSQL_DATADIR}=$MYSQL_DATADIR=" < /etc/my.cnf > /etc/my.cnf.new
rm /etc/my.cnf >> $log
mv /etc/my.cnf.new /etc/my.cnf >> $log

if [[ $CREATE_NEW_DATABASE == 1 || ($CREATE_NEW_DATABASE == if_needed && ( ! -d $MYSQL_DATADIR || -z $(ls -A $MYSQL_DATADIR) ) ) ]]; then