Skip to content

Commit

Permalink
fix(perms): Run unicorn as non-root user (#159)
Browse files Browse the repository at this point in the history
* fix(perms): Run unicorn as non-root user

* Update src/charm.py

Co-authored-by: Niels Robin-Aubertin <[email protected]>

---------

Co-authored-by: Niels Robin-Aubertin <[email protected]>
  • Loading branch information
merkata and nrobinaubertin committed Dec 14, 2023
1 parent 505da91 commit 7ef2666
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ def _create_layer_config(self) -> ops.pebble.LayerDict:
SERVICE_NAME: {
"override": "replace",
"summary": "Discourse web application",
"command": f"sh -c '{SCRIPT_PATH}/app_launch.sh'",
"command": f"{SCRIPT_PATH}/app_launch.sh",
"user": "_daemon_",
"startup": "enabled",
"environment": self._create_discourse_environment_settings(),
}
Expand Down

0 comments on commit 7ef2666

Please sign in to comment.