mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
user
This commit is contained in:
parent
087848f0fa
commit
c262cfaa35
@ -7,6 +7,9 @@ su -c '
|
||||
|
||||
# Read credential from tmp
|
||||
username=$(grep -o "New user '[^']*" /tmp/credential | sed "s/New user '//")
|
||||
if [ -z "$username" ]; then
|
||||
username="websoft9"
|
||||
fi
|
||||
password=$(grep -o "generated random password is '[^']*" /tmp/credential | sed "s/generated random password is '//")
|
||||
# Create template credential
|
||||
json="{\"username\":\"$username\",\"password\":\"$password\"}"
|
||||
|
Loading…
Reference in New Issue
Block a user