fix(init script):

This commit is contained in:
cubic
2023-06-06 15:46:51 +08:00
parent f29b9fb58c
commit 465700d7a5
2 changed files with 6 additions and 6 deletions

View File

@@ -1,15 +1,13 @@
#!/bin/bash
chmod +x ./misc/system_init.sh
setsid ./misc/system_init.sh &
if [ -f ../application/logs/install.lock ]; then
exit 0
fi
echo '> Start post initialization...'
echo 'await system initializing...'
sleep 10
sleep 30
echo '> Start post initialization...'
cp ./config.template.yaml ./env/config.yaml
cp ./env.template.yaml ./env/env.yaml

View File

@@ -1,2 +1,4 @@
#!/bin/bash
exec /usr/sbin/init
setsid ./misc/initailize_container.sh &
exec /usr/sbin/init