Remove most obsolete files before migrating to maestro

This commit is contained in:
2014-12-26 15:12:43 +01:00
parent 53c00e7df8
commit 801c56bd35
58 changed files with 1098 additions and 231 deletions

18
images/mysql/fs/bin/run Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -m
echo "$HOST_ADDR host" >> /tmp/hosts
mkdir -p `dirname $MYSQL_LOG`
if [ ! -d $MYSQL_DATA ]; then
mkdir `dirname $MYSQL_DATA`
cp /var/lib/mysql/ $MYSQL_DATA -R
chown mysql:mysql $MYSQL_DATA -R
MYSQL_SETUP=true
fi
/usr/bin/mysqld_safe --skip-syslog &
if [[ -n "$MYSQL_SETUP" ]]; then
until [[ -n $(netstat -an | grep 3306) ]]; do
sleep 1
done
mysqladmin -u root password kreeft
fg
fi