From e5b3a856eb61344e6e12c4a705e4653d0d55baa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20W=C3=BChr?= Date: Fri, 24 Feb 2023 14:47:40 +0100 Subject: [PATCH] So closer.. --- scripts/_common.sh | 4 ++-- scripts/install | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 1837e64..fcdb3c4 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -9,8 +9,8 @@ #================================================= ntfy_setup_source() { ynh_setup_source -d "$install_dir" -s "$YNH_ARCH" - ynh_secure_remove -f "$install_dir/client" - ynh_secure_remove -f "$install_dir/server" + ynh_secure_remove "$install_dir/client" + ynh_secure_remove "$install_dir/server" mkdir -p "$install_dir/data" } diff --git a/scripts/install b/scripts/install index 86d81bb..6d2629a 100755 --- a/scripts/install +++ b/scripts/install @@ -28,6 +28,6 @@ ynh_script_progression -m "Starting systemd service..." -w 1 ynh_systemd_action -a start ynh_script_progression -m "Adding admin user..." -w 1 -ynh_exex_as $app NTFY_PASSWORD="$password" $install_dir/ntfy.sh user add --role=admin $admin +ynh_exec_as $app NTFY_PASSWORD="$password" $install_dir/ntfy.sh user add --role=admin $admin ynh_script_progression -m "Installation completed" -l