From 9c21c3e30265f263f8fb6f459ec378c3bc62c6bd Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 30 Oct 2023 22:53:48 +0800 Subject: [PATCH] Minor Updates, response inconsistencies --- add-sftp.sh | 1 - manifest.jps | 7 +++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/add-sftp.sh b/add-sftp.sh index 3d9ebb4..6586927 100644 --- a/add-sftp.sh +++ b/add-sftp.sh @@ -30,7 +30,6 @@ usermod -aG litespeed,root $USERNAME chown $USERNAME:root $ROOT_DIRECTORY chmod 775 $ROOT_DIRECTORY -# Get the hostname HOSTNAME=$(hostname -f) echo "Script completed for user $USERNAME with hostname $HOSTNAME" >> /home/jelastic/add-sftp-user-addon/script_output.log echo "USERNAME:$USERNAME" diff --git a/manifest.jps b/manifest.jps index 472c2cb..93a35b1 100644 --- a/manifest.jps +++ b/manifest.jps @@ -11,8 +11,9 @@ settings: inputType: text name: root_directory caption: Root Directory - default: "/var/www/webroot/ROOT" - required: true + default: "/var/www/webroot/ROOT/{username}/" + description: "A user-specific directory will be created under this path." + required: false - type: checkbox name: agree_creation caption: I agree to the creation of a folder and SFTP account. @@ -92,13 +93,11 @@ responses: message: en: |- Connection Details - SFTP Host: ${globals.sftpHost} Port: ${globals.sftpPort} Login Credentials - Username: ${globals.username} Password: ${globals.password}