diff --git a/scripts/remove b/scripts/remove index ed12aff..fb9dbda 100755 --- a/scripts/remove +++ b/scripts/remove @@ -24,6 +24,15 @@ logs_path="/var/log/$app" #================================================= # STANDARD REMOVE +#================================================= +#================================================= +# REMOVE SERVICE FROM ADMIN PANEL +#================================================= + +if sudo yunohost service status | grep -q "$app"; then + sudo yunohost service remove "$app" +fi + #================================================= # STOP AND REMOVE SERVICE #================================================= @@ -40,14 +49,6 @@ if [ -f "/etc/supervisor/conf.d/${app}.conf" ]; then sudo ynh_secure_remove --file="/etc/supervisor/conf.d/${app}.conf" fi -#================================================= -# REMOVE SERVICE FROM ADMIN PANEL -#================================================= - -if sudo yunohost service status | grep -q "$app"; then - sudo yunohost service remove "$app" -fi - #================================================= # REMOVE THE MYSQL DATABASE #=================================================