From 7fe3ee362bd4f862b2346185d38b583f28642002 Mon Sep 17 00:00:00 2001 From: Florent Date: Sun, 29 May 2022 11:37:14 +0200 Subject: [PATCH] FIX: ynh_die should have --message argument --- scripts/install | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 023c7dc..4b97eee 100755 --- a/scripts/install +++ b/scripts/install @@ -35,7 +35,7 @@ synapse_config_path="/etc/matrix-$synapse_instance" # Check Synapse is installed or die early if [ ! -d $synapse_config_path ] then - ynh_die "Could not find $synapse_config_path config directory. Ensure that you installed Matrix Synapse first and that you entered a correct \"synapse instance number\"" + ynh_die --message="Could not find $synapse_config_path config directory. Ensure that you installed Matrix Synapse first and that you entered a correct \"synapse instance number\"" fi server_name=$(ynh_app_setting_get --app $synapse_instance --key server_name) @@ -195,7 +195,7 @@ popd cp "$final_path/$app.yaml" $app_service_registration_path/$app.yaml /opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \ - || ynh_die "Synapse can't restart with the appservice configuration" + || ynh_die --message="Synapse can't restart with the appservice configuration" #================================================= # STORE THE CONFIG FILE CHECKSUM diff --git a/scripts/restore b/scripts/restore index 95c627a..6f2e6fc 100755 --- a/scripts/restore +++ b/scripts/restore @@ -105,7 +105,7 @@ chown $app:$app "$etc_path/user.config.yaml" #================================================= cp "$final_path/$app.yaml" $app_service_registration_path/$app.yaml /opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \ - || ynh_die "Synapse can't restart with the appservice configuration" + || ynh_die --message="Synapse can't restart with the appservice configuration" #================================================= # RESTORE SYSTEMD diff --git a/scripts/upgrade b/scripts/upgrade index 5c8e940..38108ef 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -193,7 +193,7 @@ popd cp "$final_path/$app.yaml" $app_service_registration_path/$app.yaml /opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \ - || ynh_die "Synapse can't restart with the appservice configuration" + || ynh_die --message="Synapse can't restart with the appservice configuration" #================================================= # END OF SCRIPT