1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ztncui_ynh.git synced 2024-09-03 18:06:05 +02:00

[fix] no need to rehash password during upgrade

This commit is contained in:
tituspijean 2020-04-18 16:31:38 +02:00
parent 35d8edd4c8
commit e45afc1543

View file

@ -157,7 +157,6 @@ echo "ZT_ADDR=localhost:$(</var/lib/zerotier-one/zerotier-one.port)" >> $env_fil
echo "HTTP_PORT=$port" >> $env_file
# Setup user credentials file
hashedpassword=$(echo -n "$password" | $final_path/src/node_modules/argon2-cli -e)
echo "{\"$admin\":{\"name\":\"$admin\",\"pass_set\":true,\"hash\":\"$hashedpassword\"}}" >> "$final_path/src/etc/passwd"
#=================================================