From 8392eceaa51eb5cfe37d1abbaff578f532c8bb31 Mon Sep 17 00:00:00 2001 From: Mariyan Dimitrov Date: Thu, 14 Dec 2023 11:20:27 +0200 Subject: [PATCH] Update src/charm.py Co-authored-by: Niels Robin-Aubertin --- src/charm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/charm.py b/src/charm.py index a53cd2e7..5033b9e7 100755 --- a/src/charm.py +++ b/src/charm.py @@ -439,7 +439,8 @@ def _create_layer_config(self) -> ops.pebble.LayerDict: SERVICE_NAME: { "override": "replace", "summary": "Discourse web application", - "command": f"sh -u _daemon_ -c '{SCRIPT_PATH}/app_launch.sh'", + "command": f"{SCRIPT_PATH}/app_launch.sh", + "user": "_daemon_", "startup": "enabled", "environment": self._create_discourse_environment_settings(), }