Updated form

main
Anthony 2025-04-10 21:46:04 +08:00
parent 8c7d4778a1
commit 939a5fb736
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ actions:
- cmd[cp]: - cmd[cp]:
user: root user: root
commands: commands:
- id "${settings.manage_username}" &>/dev/null || { echo "User ${settings.manage_username} does not exist"; exit 1; }
- echo "${settings.manage_username}:${globals.custom_password}" | chpasswd - echo "${settings.manage_username}:${globals.custom_password}" | chpasswd
- echo "Password changed for ${settings.manage_username}" >> /home/jelastic/add-sftp-user-addon/logs/script_output.log - echo "Password changed for ${settings.manage_username}" >> /home/jelastic/add-sftp-user-addon/logs/script_output.log
- if ("${response.exitStatus}" != "0"): - if ("${response.exitStatus}" != "0"):