Skip to content

Commit

Permalink
fix(start): remove stale supervisor configuration files on start
Browse files Browse the repository at this point in the history
Repeated start might have existing files around.

Fixes WeblateOrg#2579
  • Loading branch information
nijel committed Aug 26, 2024
1 parent 7438689 commit 74a2d46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ if [ "$1" = "runserver" ] ; then
# Select which services to run
SUPERVISOR_CONF=/run/supervisor.conf.d/
mkdir -p "$SUPERVISOR_CONF"
# Remove possible stale files from previous start
rm -f "$SUPERVISOR_CONF/*"
if [ -n "$WEBLATE_SERVICE" ] ; then
if [ "$WEBLATE_SERVICE" != "celery-beat" ] ; then
DO_MIGRATE=0
Expand Down

0 comments on commit 74a2d46

Please sign in to comment.