FIX: ynh_die should have --message argument

This commit is contained in:
Florent 2022-05-29 11:37:14 +02:00 committed by Florent
parent 7075c8b9f7
commit 7fe3ee362b
3 changed files with 4 additions and 4 deletions

View file

@ -35,7 +35,7 @@ synapse_config_path="/etc/matrix-$synapse_instance"
# Check Synapse is installed or die early # Check Synapse is installed or die early
if [ ! -d $synapse_config_path ] if [ ! -d $synapse_config_path ]
then 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 fi
server_name=$(ynh_app_setting_get --app $synapse_instance --key server_name) 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 cp "$final_path/$app.yaml" $app_service_registration_path/$app.yaml
/opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \ /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 # STORE THE CONFIG FILE CHECKSUM

View file

@ -105,7 +105,7 @@ chown $app:$app "$etc_path/user.config.yaml"
#================================================= #=================================================
cp "$final_path/$app.yaml" $app_service_registration_path/$app.yaml cp "$final_path/$app.yaml" $app_service_registration_path/$app.yaml
/opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \ /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 # RESTORE SYSTEMD

View file

@ -193,7 +193,7 @@ popd
cp "$final_path/$app.yaml" $app_service_registration_path/$app.yaml cp "$final_path/$app.yaml" $app_service_registration_path/$app.yaml
/opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \ /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 # END OF SCRIPT