1
0
Fork 0
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:
Salamandar 2024-03-29 12:33:36 +01:00
parent fe2fbaf5d6
commit ae7e57ebe2

View file

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