From 046d7b2e53777b6632de4a428491acdc89d1e529 Mon Sep 17 00:00:00 2001 From: Kayou Date: Mon, 26 Aug 2024 17:02:48 +0200 Subject: [PATCH] start notify-push after the watcher --- scripts/change_url | 2 +- scripts/config | 2 +- scripts/install | 2 +- scripts/upgrade | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index ff2e8eb..ff2770b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -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 diff --git a/scripts/config b/scripts/config index 87b39b6..1a07d97 100644 --- a/scripts/config +++ b/scripts/config @@ -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 diff --git a/scripts/install b/scripts/install index df1d192..a6f4d82 100755 --- a/scripts/install +++ b/scripts/install @@ -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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 8d71ef4..d3763e0 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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