Update scripts/remove
This commit is contained in:
parent
c98f188741
commit
a1edee0f3b
1 changed files with 6 additions and 8 deletions
|
@ -13,8 +13,12 @@ source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
ynh_script_progression "Removing system configurations related to $app..."
|
ynh_script_progression "Removing system configurations related to $app..."
|
||||||
|
|
||||||
if ynh_hide_warnings yunohost service status "$app" >/dev/null; then
|
if ynh_hide_warnings yunohost service status "{$app}-backend" >/dev/null; then
|
||||||
yunohost service remove "$app"
|
yunohost service remove "{$app}-backend"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ynh_hide_warnings yunohost service status "{$app}-frontend" >/dev/null; then
|
||||||
|
yunohost service remove "{$app}-frontend"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_config_remove_systemd {$app}-backend
|
ynh_config_remove_systemd {$app}-backend
|
||||||
|
@ -23,12 +27,6 @@ ynh_config_remove_systemd {$app}-frontend
|
||||||
|
|
||||||
ynh_config_remove_nginx
|
ynh_config_remove_nginx
|
||||||
|
|
||||||
# Remove other various files specific to the app... such as:
|
|
||||||
|
|
||||||
ynh_safe_rm "/etc/cron.d/$app"
|
|
||||||
|
|
||||||
ynh_safe_rm "/etc/$app"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# END OF SCRIPT
|
# END OF SCRIPT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue