Fix minor response errors
parent
27454dcfb1
commit
2738322276
|
@ -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"
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue