Merge pull request #166 from PGYER/dev/master

fix(init script):
This commit is contained in:
Carney Wu
2023-06-06 15:48:34 +08:00
committed by GitHub
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