From 465e29d331146d97e318ca32bf372a2777d1f96a Mon Sep 17 00:00:00 2001 From: Sven Seeberg Date: Fri, 6 Dec 2024 13:20:21 +0100 Subject: [PATCH] Drop root privileges for celery worker --- .gitignore | 4 +++- tools/run.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 218d546801..14af65b9b3 100644 --- a/.gitignore +++ b/.gitignore @@ -71,5 +71,7 @@ integreat_cms/xliff/download .postgres # Celery -celerybeat-schedule.db celerybeat-schedule +celerybeat-schedule.db +celerybeat-schedule.bak +celerybeat-schedule.dir diff --git a/tools/run.sh b/tools/run.sh index 0193842443..785fd7cf73 100755 --- a/tools/run.sh +++ b/tools/run.sh @@ -47,7 +47,7 @@ done listen_for_devserver & # Run Celery worker process -celery -A integreat_cms.integreat_celery worker -l INFO -B --concurrency=1 & +deescalate_privileges celery -A integreat_cms.integreat_celery worker -l INFO -B --concurrency=1 & # Start Integreat CMS development webserver deescalate_privileges integreat-cms-cli runserver "localhost:${INTEGREAT_CMS_PORT}"