From cc7b1775115ccdeceb32359bcb9d3421b0854031 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 6 Jun 2025 23:36:52 +0800 Subject: [PATCH] Fixed error when adding SFTP user --- manifest.jps | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/manifest.jps b/manifest.jps index cd1f59c..cdd4ab9 100644 --- a/manifest.jps +++ b/manifest.jps @@ -160,12 +160,11 @@ menu: actions: add_sftp_user: + - setGlobals: + ssh_enabled: "false" - if ('${settings.enable_ssh}' == 'true'): setGlobals: ssh_enabled: "true" - - if ('${settings.enable_ssh}' != 'true'): - setGlobals: - ssh_enabled: "false" - cmd[cp]: user: root commands: |- @@ -174,7 +173,7 @@ actions: touch "$OUTPUT_LOG" # 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 if [ -n "$CREATED_USERNAME" ]; then