Expect exitcode 200 from zulip_postsetup script so we know everythings okay

This commit is contained in:
Alexander Trost
2015-10-21 15:47:12 +02:00
parent 0be186ca11
commit 08324662c5
3 changed files with 3 additions and 3 deletions

View File

@@ -386,7 +386,7 @@ if [ ! -e "$DATA_DIR/.initiated" ]; then
echo ""
touch "$DATA_DIR/.initiated"
else
rm -rf /etc/supervisor/conf.d/zulip_postsetup.conf
rm -f /etc/supervisor/conf.d/zulip_postsetup.conf
fi
# If there's an "update" available, then "JUST DO IT!" - Shia Labeouf
if [ ! -e "$DATA_DIR/.zulip-$ZULIP_VERSION" ]; then

View File

@@ -8,5 +8,4 @@ User = get_user_profile_by_email('atrost@zerbytes.net')
User.set_password('$ZULIP_USER_PASS')
User.save()
EOF
rm -rf /etc/supervisor/conf.d/zulip_postsetup.conf
exit 0
exit 200

View File

@@ -4,3 +4,4 @@ user=zulip
stdout_events_enabled=true
stderr_events_enabled=true
autorestart = false
exitcodes = 200