Add uninstall action

main
Anthony 2023-10-27 00:08:55 +08:00
parent 40e0ee4d78
commit 1ea92f5bd0
1 changed files with 6 additions and 0 deletions

View File

@ -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