Fix responses

main
Anthony 2023-10-27 22:45:46 +08:00
parent 971793cbf0
commit 84f99d31c7
1 changed files with 2 additions and 4 deletions

View File

@ -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: |-