Fix syntax error
parent
1ea92f5bd0
commit
3bba4d9705
|
@ -1,5 +1,4 @@
|
||||||
type: update
|
type: update
|
||||||
baseUrl: https://deploy.mightybox.io/tony/Add-SFTP-User/
|
|
||||||
name: Add SFTP User
|
name: Add SFTP User
|
||||||
|
|
||||||
targetNodes:
|
targetNodes:
|
||||||
|
@ -30,20 +29,20 @@ 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-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: |
|
- 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:
|
onUninstall:
|
||||||
- cmd[cp]: sudo rm -f ./add-sftp.sh
|
- cmd[cp]: rm -f ./add-sftp.sh
|
||||||
- return:
|
- return:
|
||||||
result: 0
|
result: 0
|
||||||
message: "Add-on uninstalled successfully and script file removed."
|
message: "Add-on uninstalled successfully and script file removed."
|
||||||
|
|
||||||
actions:
|
actions:
|
||||||
add_sftp_user:
|
add_sftp_user:
|
||||||
- cmd[cp]: sudo ./add-sftp.sh
|
- cmd[cp]: ./add-sftp.sh
|
||||||
- return:
|
- return:
|
||||||
result: 0
|
result: 0
|
||||||
output: "SFTP user added successfully!"
|
output: "SFTP user added successfully!"
|
||||||
|
|
Loading…
Reference in New Issue