From 1ea92f5bd067248ddfe448d2942b634e412b1240 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 27 Oct 2023 00:08:55 +0800 Subject: [PATCH] Add uninstall action --- manifest.jps | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/manifest.jps b/manifest.jps index 2b97253..e9240fe 100644 --- a/manifest.jps +++ b/manifest.jps @@ -35,6 +35,12 @@ onInstall: Add-on installed successfully! To create additional SFTP accounts, click on the "Add new SFTP user" button. +onUninstall: + - cmd[cp]: sudo rm -f ./add-sftp.sh + - return: + result: 0 + message: "Add-on uninstalled successfully and script file removed." + actions: add_sftp_user: - cmd[cp]: sudo ./add-sftp.sh