enable the $app service during install

This commit is contained in:
OniriCorpe 2024-05-24 00:06:03 +02:00
parent e8c6abb768
commit cfcbeb3fa9

View file

@ -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
}