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: onInstall:
- cmd[cp]: |- - cmd[cp]: |-
sudo su
curl -sO https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh curl -sO https://deploy-proxy.mightybox.io/addons/add-sftp-user/raw/branch/main/add-sftp.sh
chmod +x add-sftp.sh chmod +x add-sftp.sh
echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config echo -e "\nMatch User user*\nPasswordAuthentication yes" >> /etc/ssh/sshd_config
@ -35,7 +36,7 @@ onInstall:
nodeGroup: cp nodeGroup: cp
data: data:
restart: true restart: true
- return: installSuccess return: Installation completed successfully!
onUninstall: onUninstall:
- cmd[cp]: rm -f ./add-sftp.sh - cmd[cp]: rm -f ./add-sftp.sh
@ -46,9 +47,6 @@ actions:
- return: sftpSuccess - return: sftpSuccess
responses: responses:
installSuccess:
result: 0
message: "Installation completed successfully!"
sftpSuccess: sftpSuccess:
type: success type: success
email: |- email: |-