From 760d63e8a0230f412b09d538bc1d6e0d0315bc69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 26 Sep 2023 14:47:54 +0200 Subject: [PATCH] Indent using spaces --- scripts/remove | 4 ++-- scripts/upgrade | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/scripts/remove b/scripts/remove index 1dc1dd8..99a00e3 100755 --- a/scripts/remove +++ b/scripts/remove @@ -21,8 +21,8 @@ ynh_script_progression --message="Removing system configurations related to $app # Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_exec_warn_less yunohost service status "$app" >/dev/null then - ynh_script_progression --message="Removing $app service integration..." --weight=1 - yunohost service remove "$app" + ynh_script_progression --message="Removing $app service integration..." --weight=1 + yunohost service remove "$app" fi ynh_remove_systemd_config diff --git a/scripts/upgrade b/scripts/upgrade index 663918a..0ec34dc 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -26,14 +26,14 @@ upgrade_type=$(ynh_check_app_version_changed) # If db_name doesn't exist, create it #if [ -z "$db_name" ]; then -# db_name=$(ynh_sanitize_dbid --db_name=$app) -# ynh_app_setting_set --app=$app --key=db_name --value=$db_name +# db_name=$(ynh_sanitize_dbid --db_name=$app) +# ynh_app_setting_set --app=$app --key=db_name --value=$db_name #fi # If install_dir doesn't exist, create it #if [ -z "$install_dir" ]; then -# install_dir=/var/www/$app -# ynh_app_setting_set --app=$app --key=install_dir --value=$install_dir +# install_dir=/var/www/$app +# ynh_app_setting_set --app=$app --key=install_dir --value=$install_dir #fi #================================================= @@ -51,8 +51,9 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="/var/log/$a if [ "$upgrade_type" == "UPGRADE_APP" ] then - ynh_script_progression --message="Upgrading source files..." --weight=1 + ynh_script_progression --message="Upgrading source files..." --weight=1 + # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --source_id=ttyd --dest_dir="$install_dir/ttyd" ynh_setup_source --source_id=httpsh --dest_dir="$install_dir/httpsh" fi