Minor Updates, response inconsistencies

pull/1/head
Anthony 2023-10-30 22:53:48 +08:00
parent 2738322276
commit 9c21c3e302
2 changed files with 3 additions and 5 deletions

View File

@ -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"

View File

@ -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}