Permalink
Browse files

修复使用mysql未初始化问题

1.修复使用mysql未初始化问题
2.crontab add
  • Loading branch information...
1 parent da8f30f commit b3c12e88616286faa5a76c5eff79ef034ddba2bd @jiaxiangkong jiaxiangkong committed on GitHub Nov 7, 2016
Showing with 3 additions and 2 deletions.
  1. +3 −2 install/docker/run.sh
@@ -49,9 +49,10 @@ fi
/usr/sbin/sshd -E /data/logs/jumpserver.log
python /jumpserver/manage.py syncdb --noinput
if [ ! -f "/home/init.locked" ]; then
- python manage.py loaddata install/initial_data.yaml
+ python /jumpserver/manage.py loaddata install/initial_data.yaml
date > /home/init.locked
fi
-python /jumpserver/run_server.py >> /data/logs/jumpserver.log &
+python /jumpserver/manage.py crontab add >> /data/logs/jumpserver.log &
+python /jumpserver/run_server.py >> /dev/null &
chmod -R 777 /data/logs/jumpserver.log
tail -f /data/logs/jumpserver.log

0 comments on commit b3c12e8

Please sign in to comment.