1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/httpsh_ynh.git synced 2024-09-03 19:25:55 +02:00

Indent using spaces

This commit is contained in:
Félix Piédallu 2023-09-26 14:47:54 +02:00
parent 8dfc58feb9
commit 760d63e8a0
2 changed files with 8 additions and 7 deletions

View file

@ -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

View file

@ -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