Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

fix: always exec init command

LinkinStarb01e871ff9d3
diff --git a/script/entrypoint.sh b/script/entrypoint.sh
index 95a17980..c66528d8 100755
--- a/script/entrypoint.sh
+++ b/script/entrypoint.sh
@@ -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