From cbb63ab329e9c24aa013d3a0ec0eda0e62dde642 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Tue, 21 Jan 2020 23:03:55 +0100 Subject: [PATCH] Fix ynh_systemd_action --- scripts/backup | 4 ++-- scripts/change_url | 4 ++-- scripts/install | 2 +- scripts/restore | 2 +- scripts/upgrade | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/backup b/scripts/backup index 37e1be5..069679d 100644 --- a/scripts/backup +++ b/scripts/backup @@ -38,7 +38,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) #================================================= ynh_print_info --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped Bitwarden Server" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Bitwarden Server" #================================================= # BACKUP THE APP MAIN DIR @@ -83,7 +83,7 @@ ynh_backup --src_path="/etc/systemd/system/$app.service" #================================================= ynh_print_info --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" --length=100 if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 sleep 60 diff --git a/scripts/change_url b/scripts/change_url index 1541914..e5cda25 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -74,7 +74,7 @@ fi #================================================= ynh_print_info --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped Bitwarden Server" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Bitwarden Server" #================================================= # MODIFY URL IN NGINX CONF @@ -118,7 +118,7 @@ fi #================================================= ynh_print_info --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" --length=100 if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 sleep 60 diff --git a/scripts/install b/scripts/install index 88c5de8..c086f26 100644 --- a/scripts/install +++ b/scripts/install @@ -204,7 +204,7 @@ yunohost service add $app --description "$app daemon for Bitwarden" --log "/var/ ynh_print_info --message="Starting a systemd service..." # Start a systemd service -ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" --length=100 if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 sleep 60 diff --git a/scripts/restore b/scripts/restore index 185ac85..f68c470 100644 --- a/scripts/restore +++ b/scripts/restore @@ -121,7 +121,7 @@ yunohost service add $app --description "$app daemon for Bitwarden" --log "/var/ ynh_print_info --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" --length=100 if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 sleep 60 diff --git a/scripts/upgrade b/scripts/upgrade index 8fc7680..09bdaf0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,7 +74,7 @@ ynh_abort_if_errors #================================================= ynh_print_info --message="Stopping a systemd service..." -ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped Bitwarden Server" +ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Bitwarden Server" #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE @@ -226,7 +226,7 @@ fi #================================================= ynh_print_info --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="Rocket has launched from" --length=100 +ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Rocket has launched from" --length=100 if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Rocket has launched from" --length=100 sleep 60