1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

start notify-push after the watcher

This commit is contained in:
Kayou 2024-08-26 17:02:48 +02:00 committed by GitHub
parent bf4e212a13
commit 046d7b2e53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -73,10 +73,10 @@ then
armel|armhf) arch="armv7";;
esac
ynh_add_systemd_config --service="${app}-notify-push"
ynh_add_config --template="watcher.path" --destination="/etc/systemd/system/${app}-notify-push-watcher.path"
ynh_add_systemd_config --service="${app}-notify-push-watcher" --template="watcher.service"
systemctl enable --now ${app}-notify-push-watcher.path
ynh_add_systemd_config --service="${app}-notify-push"
ynh_exec_as "$app" php${phpversion} --define apc.enable_cli=1 $install_dir/cron.php

View file

@ -136,10 +136,10 @@ set__enable_notify_push() {
armel|armhf) arch="armv7";;
esac
ynh_add_systemd_config --service="${app}-notify-push"
ynh_add_config --template="watcher.path" --destination="/etc/systemd/system/${app}-notify-push-watcher.path"
ynh_add_systemd_config --service="${app}-notify-push-watcher" --template="watcher.service"
systemctl enable --now ${app}-notify-push-watcher.path
ynh_add_systemd_config --service="${app}-notify-push"
exec_occ background:cron

View file

@ -221,10 +221,10 @@ then
armel|armhf) arch="armv7";;
esac
ynh_add_systemd_config --service="${app}-notify-push"
ynh_add_config --template="watcher.path" --destination="/etc/systemd/system/${app}-notify-push-watcher.path"
ynh_add_systemd_config --service="${app}-notify-push-watcher" --template="watcher.service"
systemctl enable --now ${app}-notify-push-watcher.path
ynh_add_systemd_config --service="${app}-notify-push"
fi
#=================================================

View file

@ -406,10 +406,10 @@ then
armel|armhf) arch="armv7";;
esac
ynh_add_systemd_config --service="${app}-notify-push"
ynh_add_config --template="watcher.path" --destination="/etc/systemd/system/${app}-notify-push-watcher.path"
ynh_add_systemd_config --service="${app}-notify-push-watcher" --template="watcher.service"
systemctl enable --now ${app}-notify-push-watcher.path
ynh_add_systemd_config --service="${app}-notify-push"
fi