mirror of
https://github.com/YunoHost-Apps/ztncui_ynh.git
synced 2024-09-03 18:06:05 +02:00
Fix upgrade
This commit is contained in:
parent
fe2fbaf5d6
commit
ae7e57ebe2
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ if [ -z "${admin:-}" ] || [ -z "${hashedpassword:-}" ]; then
|
|||
hashedpassword='$argon2i$v=19$m=4096,t=3,p=1$/VYxjWHBzbkuCEO6Hh0AUw$nJaTJtth57vCAyYvg+UbtnscilR0UcE02AfLOhERe3A'
|
||||
pass_set="false"
|
||||
ynh_app_setting_set --app="$app" --key="admin" --value="$admin"
|
||||
ynh_app_setting_set --app="$hashedpassword" --key="hashedpassword" --value="$hashedpassword"
|
||||
ynh_app_setting_set --app="$app" --key="hashedpassword" --value="$hashedpassword"
|
||||
|
||||
# Setup user credentials file
|
||||
echo "{\"$admin\":{\"name\":\"$admin\",\"pass_set\":$pass_set,\"hash\":\"$hashedpassword\"}}" > "$install_dir/src/etc/passwd"
|
||||
|
|
Loading…
Add table
Reference in a new issue