From 09f189e628fbadec4665d8b1313fe07e02616d61 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 19 Mar 2019 14:33:20 +0100 Subject: Prepare instance script: create appropriate celery_app.py --- install/ishtar-prepare-instance | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'install') diff --git a/install/ishtar-prepare-instance b/install/ishtar-prepare-instance index 50740b1b5..4ce36fae9 100755 --- a/install/ishtar-prepare-instance +++ b/install/ishtar-prepare-instance @@ -276,6 +276,9 @@ EOF s|#INSTALL_PATH#|$INSTALL_PATH|g;"\ "install/celery.service.template" > \ "/etc/systemd/system/celery-"$INSTANCE".service" + sed -s "s|example_project|$INSTANCE|g;" \ + $INSTANCE"/celery_app.py.sample" > \ + $INSTANCE"/celery_app.py" systemctl daemon-reload fi @@ -285,6 +288,7 @@ EOF ln -s __init__.py.celery.sample __init__.py else ln -s __init__.py.base.sample __init__.py + fi cd - -- cgit v1.2.3