mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-14 14:29:21 +00:00
make sure logs directory exists (#374)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user