1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00

Update remove

This commit is contained in:
liberodark 2019-11-28 10:29:55 +01:00 committed by GitHub
parent d17dacc5d2
commit c59f779a9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,10 +15,10 @@ ynh_script_progression --message="Loading installation settings..."
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
domain=$(ynh_app_setting_get "$app" domain)
db_name=$app
db_user=$app
final_path=$(ynh_app_setting_get $app final_path)
final_path=$(ynh_app_setting_get "$app" final_path)
#=================================================
# STANDARD REMOVE
@ -27,10 +27,10 @@ final_path=$(ynh_app_setting_get $app final_path)
#=================================================
# Remove a service from the admin panel, added by `yunohost service add`
if yunohost service status $app >/dev/null 2>&1
if yunohost service status "$app" >/dev/null 2>&1
then
ynh_script_progression --message="Removing $app service"
yunohost service remove $app
yunohost service remove "$app"
fi
#=================================================
@ -47,7 +47,7 @@ ynh_remove_systemd_config
ynh_script_progression --message="Removing the PostgreSQL database"
# Remove a database if it exists, along with the associated user
ynh_psql_remove_db $db_name $db_name
ynh_psql_remove_db "$db_name" "$db_name"
#=================================================
# REMOVE DEPENDENCIES
@ -81,7 +81,7 @@ ynh_remove_nginx_config
ynh_script_progression --message="Removing the dedicated system user"
# Delete a system user
ynh_system_user_delete $app
ynh_system_user_delete "$app"
#=================================================
# END OF SCRIPT