1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

Simplify remove script / more explicit message about system configuration removal

This commit is contained in:
Alexandre Aubin 2023-12-27 19:21:43 +01:00
parent bacecf5e21
commit e142f23125

View file

@ -1,26 +1,8 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
admin_mail=$(ynh_user_get_info --username=$admin --key="mail")
#=================================================
# STANDARD REMOVE
#=================================================
# REMOVE SERVICE INTEGRATION IN YUNOHOST
#=================================================
# 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
@ -28,6 +10,8 @@ then
yunohost service remove $app
fi
ynh_script_progression --message="Removing system configurations related to $app..."
# Remove the dedicated systemd config
ynh_remove_systemd_config