From cfcbeb3fa9e2a031d0571d0c5d9dd4feecdbd6f8 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Fri, 24 May 2024 00:06:03 +0200 Subject: [PATCH] enable the $app service during install --- helpers/systemd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/helpers/systemd b/helpers/systemd index 7687b15ab..1df6a6fc9 100644 --- a/helpers/systemd +++ b/helpers/systemd @@ -25,6 +25,10 @@ ynh_add_systemd_config() { ynh_add_config --template="$template" --destination="/etc/systemd/system/$service.service" + if [[ ${YNH_APP_ACTION} == "install" ]]; then + systemctl enable $service --quiet + fi + systemctl daemon-reload }