make sure logs directory exists (#374)

This commit is contained in:
Leon Chan
2017-04-20 16:51:52 +08:00
committed by 老广
parent 2a51eeef10
commit 402df81048

View File

@@ -46,6 +46,9 @@ if [ ! -f "/etc/ssh/ssh_host_ed25519_key" ]; then
ssh-keygen -t ed25519 -b 1024 -f /etc/ssh/ssh_host_ed25519_key -N '' ssh-keygen -t ed25519 -b 1024 -f /etc/ssh/ssh_host_ed25519_key -N ''
fi fi
# handle empty data directory
mkdir -p /data/logs
/usr/sbin/sshd -E /data/logs/jumpserver.log /usr/sbin/sshd -E /data/logs/jumpserver.log
python /jumpserver/manage.py syncdb --noinput python /jumpserver/manage.py syncdb --noinput
if [ ! -f "/home/init.locked" ]; then if [ ! -f "/home/init.locked" ]; then