Fixed error when adding SFTP user
parent
af8889bd3e
commit
cc7b177511
|
@ -160,12 +160,11 @@ menu:
|
||||||
|
|
||||||
actions:
|
actions:
|
||||||
add_sftp_user:
|
add_sftp_user:
|
||||||
|
- setGlobals:
|
||||||
|
ssh_enabled: "false"
|
||||||
- if ('${settings.enable_ssh}' == 'true'):
|
- if ('${settings.enable_ssh}' == 'true'):
|
||||||
setGlobals:
|
setGlobals:
|
||||||
ssh_enabled: "true"
|
ssh_enabled: "true"
|
||||||
- if ('${settings.enable_ssh}' != 'true'):
|
|
||||||
setGlobals:
|
|
||||||
ssh_enabled: "false"
|
|
||||||
- cmd[cp]:
|
- cmd[cp]:
|
||||||
user: root
|
user: root
|
||||||
commands: |-
|
commands: |-
|
||||||
|
@ -174,7 +173,7 @@ actions:
|
||||||
touch "$OUTPUT_LOG"
|
touch "$OUTPUT_LOG"
|
||||||
|
|
||||||
# Run the script with all output going to the log file
|
# Run the script with all output going to the log file
|
||||||
bash /home/jelastic/add-sftp-user-addon/add-sftp.sh ${globals.username} ${globals.password} ${globals.ssh_enabled} > "$OUTPUT_LOG" 2>&1
|
source /home/jelastic/add-sftp-user-addon/add-sftp.sh ${globals.username} ${globals.password} ${globals.ssh_enabled} > "$OUTPUT_LOG" 2>&1
|
||||||
|
|
||||||
# Export only username - no other output
|
# Export only username - no other output
|
||||||
if [ -n "$CREATED_USERNAME" ]; then
|
if [ -n "$CREATED_USERNAME" ]; then
|
||||||
|
|
Loading…
Reference in New Issue