From 1a7f1c55683a72520a08f8b8a6f2d477fc979dee Mon Sep 17 00:00:00 2001 From: Benedikt Tissot Date: Fri, 17 Sep 2021 18:04:55 +0200 Subject: [PATCH] better indentation --- scripts/install | 12 ++++++------ scripts/upgrade | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/install b/scripts/install index 8e7aff2..ba5f558 100755 --- a/scripts/install +++ b/scripts/install @@ -261,12 +261,12 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" # Wait until the synapse user is created sleep 30 - # (Note that, by default, non-admins might not have your homeserver's permission to create communities.) - if [ "$bot_synapse_adm" = true ] - then - ynh_psql_execute_as_root --database=$synapse_db_name --sql="UPDATE users SET admin = 1 WHERE name = ""$botname"";" - #yunohost app action run $synapse_instance set_admin_user -a username=$botname - fi + +# (Note that, by default, non-admins might not have your homeserver's permission to create communities.) +if [ "$bot_synapse_adm" = true ]; then + ynh_psql_execute_as_root --database=$synapse_db_name --sql="UPDATE users SET admin = 1 WHERE name = ""$botname"";" + #yunohost app action run $synapse_instance set_admin_user -a username=$botname +fi ynh_systemd_action --service_name=$app --action="restart" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5bf6d51..65acf3c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -62,8 +62,8 @@ fi # If final_path doesn't exist, create it #if [ -z "$final_path" ]; then -# final_path=/var/www/$app -# ynh_app_setting_set --app=$app --key=final_path --value=$final_path +# final_path=/var/www/$app +# ynh_app_setting_set --app=$app --key=final_path --value=$final_path #fi #=================================================