Commit 402df810 authored by Leon Chan's avatar Leon Chan Committed by 老广

make sure logs directory exists (#374)

parent 2a51eeef
......@@ -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 ''
fi
# handle empty data directory
mkdir -p /data/logs
/usr/sbin/sshd -E /data/logs/jumpserver.log
python /jumpserver/manage.py syncdb --noinput
if [ ! -f "/home/init.locked" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment