Fix minor response errors

main
Anthony 2023-10-30 21:49:41 +08:00
parent 27454dcfb1
commit 2738322276
2 changed files with 5 additions and 0 deletions

View File

@ -33,3 +33,5 @@ chmod 775 $ROOT_DIRECTORY
# Get the hostname # Get the hostname
HOSTNAME=$(hostname -f) HOSTNAME=$(hostname -f)
echo "Script completed for user $USERNAME with hostname $HOSTNAME" >> /home/jelastic/add-sftp-user-addon/script_output.log echo "Script completed for user $USERNAME with hostname $HOSTNAME" >> /home/jelastic/add-sftp-user-addon/script_output.log
echo "USERNAME:$USERNAME"
echo "PASSWORD:$PASSWORD"

View File

@ -57,6 +57,9 @@ actions:
user: root user: root
- if ("${response.exitStatus}" != "0"): - if ("${response.exitStatus}" != "0"):
return: sftpError return: sftpError
- setGlobals:
username: ${response.out.USERNAME}
password: ${response.out.PASSWORD}
- return: sftpSuccess - return: sftpSuccess
onUninstall: onUninstall: