From 911bc5a4374da42bb9dbc79440b4be165a8a5e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 25 Jan 2021 11:32:04 +0100 Subject: [PATCH] Indentation --- scripts/install | 26 +++++++++++++------------- scripts/upgrade | 6 +++--- 2 files changed, 16 insertions(+), 16 deletions(-) mode change 100755 => 100644 scripts/install mode change 100755 => 100644 scripts/upgrade diff --git a/scripts/install b/scripts/install old mode 100755 new mode 100644 index 6100c79..4e6f18d --- a/scripts/install +++ b/scripts/install @@ -14,8 +14,8 @@ source /usr/share/yunohost/helpers #================================================= ynh_clean_setup () { - ### Remove this function if there's nothing to clean before calling the remove script. - true + ### Remove this function if there's nothing to clean before calling the remove script. + true } # Exit if an error occurs during the execution of the script ynh_abort_if_errors @@ -132,21 +132,21 @@ phpversion=$(ynh_app_setting_get --app="$app" --key=phpversion) #================================================= ynh_script_progression --message="Installing and configuring Mediawiki..." --weight=14 if [ "$path_url" = "/" ]; then - scriptpath="" + scriptpath="" else - scriptpath=$path_url + scriptpath=$path_url fi "php$phpversion" "$final_path/maintenance/install.php" --conf "$final_path" \ - --server "https://$domain" \ - --scriptpath "$scriptpath" \ - --dbuser "$db_name" \ - --dbpass "$db_pwd" \ - --dbname "$db_name" \ - --dbprefix "mdk_" \ - --lang "$language" \ - --pass "$admin_password" \ - "$wiki_name" "$admin" + --server "https://$domain" \ + --scriptpath "$scriptpath" \ + --dbuser "$db_name" \ + --dbpass "$db_pwd" \ + --dbname "$db_name" \ + --dbprefix "mdk_" \ + --lang "$language" \ + --pass "$admin_password" \ + "$wiki_name" "$admin" #================================================= # REPLACE CONFIGURATION SETTINGS diff --git a/scripts/upgrade b/scripts/upgrade old mode 100755 new mode 100644 index bf0652d..637afd0 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -195,13 +195,13 @@ ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=1 # Upgrade from the legacy permissions system protected_uris=$(ynh_app_setting_get --app="$app" --key=protected_uris) if [ -n "${protected_uris}" ]; then - ynh_app_setting_delete --app="$app" --key=protected_uris + ynh_app_setting_delete --app="$app" --key=protected_uris fi # Make app public if necessary if [ $is_public -eq 1 ]; then - # Allow public access on / - ynh_permission_update --permission "main" --add "visitors" + # Allow public access on / + ynh_permission_update --permission "main" --add "visitors" fi #=================================================