fix: always exec init command

This commit is contained in:
LinkinStar 2022-10-13 14:40:59 +08:00
parent ed41d4a2f5
commit 09e2fc5e57
1 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,3 @@
#!/bin/bash
if [ ! -f "/data/conf/config.yaml" ]; then
/usr/bin/answer init
fi
/usr/bin/answer run -c /data/conf/config.yaml
/usr/bin/answer init
/usr/bin/answer run -c /data/conf/config.yaml