Compare commits
No commits in common. "1ea92f5bd067248ddfe448d2942b634e412b1240" and "357dec0a255807b80409effc2417cf03a143ccb9" have entirely different histories.
1ea92f5bd0
...
357dec0a25
17
manifest.jps
17
manifest.jps
|
@ -29,24 +29,15 @@ globals:
|
||||||
|
|
||||||
onInstall:
|
onInstall:
|
||||||
- cmd[cp]: |
|
- 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
|
chmod +x add_user_sftp.sh
|
||||||
- success: |
|
- success: |
|
||||||
Add-on installed successfully!
|
Add-on installed successfully!
|
||||||
To create additional SFTP accounts, click on the "Add new SFTP user" button.
|
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:
|
actions:
|
||||||
add_sftp_user:
|
add_sftp_user:
|
||||||
- cmd[cp]: sudo ./add-sftp.sh
|
script: /scripts/add-sftp-user.cs?_r=${fn.random}&enable_ssh=${settings.enable_ssh}
|
||||||
- return:
|
|
||||||
result: 0
|
|
||||||
output: "SFTP user added successfully!"
|
|
||||||
|
|
||||||
success:
|
success:
|
||||||
email: |
|
email: |
|
||||||
|
@ -76,4 +67,6 @@ buttons:
|
||||||
- settings: sfpform
|
- settings: sfpform
|
||||||
action: add_sftp_user
|
action: add_sftp_user
|
||||||
caption: Add SFTP/SSH User
|
caption: Add SFTP/SSH User
|
||||||
confirmText: "Are you sure you want to add this SFTP user?"
|
confirmText: "Are you sure you want to add this SFTP user?"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue