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 chown $USERNAME:root $ROOT_DIRECTORY
chmod 775 $ROOT_DIRECTORY chmod 775 $ROOT_DIRECTORY
# 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 "USERNAME:$USERNAME"

View File

@ -11,8 +11,9 @@ settings:
inputType: text inputType: text
name: root_directory name: root_directory
caption: Root Directory caption: Root Directory
default: "/var/www/webroot/ROOT" default: "/var/www/webroot/ROOT/{username}/"
required: true description: "A user-specific directory will be created under this path."
required: false
- type: checkbox - type: checkbox
name: agree_creation name: agree_creation
caption: I agree to the creation of a folder and SFTP account. caption: I agree to the creation of a folder and SFTP account.
@ -92,13 +93,11 @@ responses:
message: message:
en: |- en: |-
Connection Details Connection Details
SFTP Host: ${globals.sftpHost} SFTP Host: ${globals.sftpHost}
Port: ${globals.sftpPort} Port: ${globals.sftpPort}
Login Credentials Login Credentials
Username: ${globals.username} Username: ${globals.username}
Password: ${globals.password} Password: ${globals.password}