diff --git a/scripts/change_url b/scripts/change_url index 76cb493..ab229fc 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -67,7 +67,15 @@ then ynh_systemd_action --service_name=nginx --action=reload + case $YNH_ARCH in + amd64) arch="x86_64";; + arm64) arch="aarch64";; + armel|armhf) arch="armv7";; + esac + ynh_add_systemd_config --service="${app}-notify-push" + ynh_add_systemd_config --service="${app}-notify-push-watcher" --template="watcher.service" + ynh_add_config --template="watcher.path" --destination="/etc/systemd/system/${app}-notify-push-watcher.path" ynh_systemd_action --service_name="${app}-notify-push" --action=restart diff --git a/scripts/install b/scripts/install index 7dda92a..4851013 100755 --- a/scripts/install +++ b/scripts/install @@ -248,6 +248,12 @@ then mkdir -p /var/run/$app/ chown $app: /var/run/$app/ + case $YNH_ARCH in + amd64) arch="x86_64";; + arm64) arch="aarch64";; + armel|armhf) arch="armv7";; + esac + ynh_add_systemd_config --service="${app}-notify-push" ynh_add_systemd_config --service="${app}-notify-push-watcher" --template="watcher.service" ynh_add_config --template="watcher.path" --destination="/etc/systemd/system/${app}-notify-push-watcher.path" diff --git a/scripts/upgrade b/scripts/upgrade index cf7df03..f71f49c 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -405,6 +405,12 @@ then mkdir -p /var/run/$app/ chown $app: /var/run/$app/ + case $YNH_ARCH in + amd64) arch="x86_64";; + arm64) arch="aarch64";; + armel|armhf) arch="armv7";; + esac + ynh_add_systemd_config --service="${app}-notify-push" ynh_add_systemd_config --service="${app}-notify-push-watcher" --template="watcher.service" ynh_add_config --template="watcher.path" --destination="/etc/systemd/system/${app}-notify-push-watcher.path"