Fix syntax error

main
Anthony 2023-10-27 00:21:57 +08:00
parent 1ea92f5bd0
commit 3bba4d9705
1 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,4 @@
type: update
baseUrl: https://deploy.mightybox.io/tony/Add-SFTP-User/
name: Add SFTP User
targetNodes:
@ -30,20 +29,20 @@ globals:
onInstall:
- cmd[cp]: |
curl -O https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh
chmod +x add_user_sftp.sh
chmod +x add-sftp.sh # Corrected the filename here
- success: |
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
- cmd[cp]: 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
- cmd[cp]: ./add-sftp.sh
- return:
result: 0
output: "SFTP user added successfully!"