瀏覽代碼

Update remove

DeMiro5001 6 月之前
父節點
當前提交
0d83e7f839
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      scripts/remove

+ 5 - 0
scripts/remove

@@ -12,6 +12,11 @@ source /usr/share/yunohost/helpers
 #=================================================
 ynh_script_progression "Removing system configurations related to $app..."
 
+if ynh_hide_warnings yunohost service status "$app" >/dev/null; then
+    yunohost service remove "$app"
+fi
+ynh_config_remove_systemd
+
 #ynh_config_remove_fail2ban
 
 ynh_config_remove_logrotate