Rewrite uwsgi to use the helper

This commit is contained in:
Jean-Baptiste Holcroft
2018-07-05 23:21:03 +02:00
parent 613527af71
commit f6682e66ac
10 changed files with 190 additions and 83 deletions

View File

@@ -1,6 +1,5 @@
#!/bin/bash
#=================================================
# GENERIC START
#=================================================
@@ -24,20 +23,10 @@ db_name=$app
#=================================================
# STANDARD REMOVE
#=================================================
# STOP AND REMOVE SERVICE
# REMOVE UWSGI
#=================================================
ynh_remove_systemd_config
#=================================================
# REMOVE SERVICE FROM ADMIN PANEL
#=================================================
if yunohost service status | grep -q "$app"
then
echo "Remove $app service"
yunohost service remove "$app"
fi
ynh_remove_uwsgi_service
#=================================================
# REMOVE DEPENDENCIES