mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
enable the $app service during install
This commit is contained in:
parent
e8c6abb768
commit
cfcbeb3fa9
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue