Compare commits

..

No commits in common. "1ea92f5bd067248ddfe448d2942b634e412b1240" and "357dec0a255807b80409effc2417cf03a143ccb9" have entirely different histories.

1 changed files with 5 additions and 12 deletions

View File

@ -29,24 +29,15 @@ globals:
onInstall:
- cmd[cp]: |
curl -O https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh
curl -O https://deploy.mightybox.io/tony/Add-SFTP-User/raw/master/scripts/add_user_sftp.sh
chmod +x add_user_sftp.sh
- 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
- return:
result: 0
message: "Add-on uninstalled successfully and script file removed."
actions:
add_sftp_user:
- cmd[cp]: sudo ./add-sftp.sh
- return:
result: 0
output: "SFTP user added successfully!"
script: /scripts/add-sftp-user.cs?_r=${fn.random}&enable_ssh=${settings.enable_ssh}
success:
email: |
@ -77,3 +68,5 @@ buttons:
action: add_sftp_user
caption: Add SFTP/SSH User
confirmText: "Are you sure you want to add this SFTP user?"