Fix responses
parent
971793cbf0
commit
84f99d31c7
|
@ -26,6 +26,7 @@ globals:
|
|||
|
||||
onInstall:
|
||||
- cmd[cp]: |-
|
||||
sudo su
|
||||
curl -sO https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh
|
||||
chmod +x add-sftp.sh
|
||||
echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
|
||||
|
@ -35,7 +36,7 @@ onInstall:
|
|||
nodeGroup: cp
|
||||
data:
|
||||
restart: true
|
||||
- return: installSuccess
|
||||
return: Installation completed successfully!
|
||||
|
||||
onUninstall:
|
||||
- cmd[cp]: rm -f ./add-sftp.sh
|
||||
|
@ -46,9 +47,6 @@ actions:
|
|||
- return: sftpSuccess
|
||||
|
||||
responses:
|
||||
installSuccess:
|
||||
result: 0
|
||||
message: "Installation completed successfully!"
|
||||
sftpSuccess:
|
||||
type: success
|
||||
email: |-
|
||||
|
|
Loading…
Reference in New Issue