diff --git a/scripts/remove b/scripts/remove index 9a94dde..63bfe68 100755 --- a/scripts/remove +++ b/scripts/remove @@ -19,16 +19,6 @@ port=$(ynh_app_setting_get $app port) final_path=$(ynh_app_setting_get $app final_path) calibre_dir=$(ynh_app_setting_get $app calibre_dir) -#================================================= -# STANDARD REMOVE -#================================================= -# STOP AND REMOVE SERVICE -#================================================= - -# Remove the dedicated systemd config -ynh_print_info "Removing systemd" -ynh_remove_systemd_config - #================================================= # REMOVE SERVICE FROM ADMIN PANEL #================================================= @@ -40,6 +30,18 @@ then yunohost service remove $app fi +#================================================= +# STANDARD REMOVE +#================================================= +# STOP AND REMOVE SERVICE +#================================================= + +# Remove the dedicated systemd config +ynh_print_info "Removing systemd" +ynh_remove_systemd_config + + + #================================================= # REMOVE DEPENDENCIES #=================================================