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

Fix .env file location

This commit is contained in:
tituspijean 2022-01-15 19:48:44 +01:00
parent 4a0d6df2ee
commit ba1445555f
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 6 additions and 6 deletions

View file

@ -124,9 +124,9 @@ popd
zt_token="$(</var/lib/zerotier-one/authtoken.secret)"
zt_addr="localhost:$(</var/lib/zerotier-one/zerotier-one.port)"
ynh_add_config --template="env" --destination="$final_path/.env"
chown $app:$app "$final_path/.env"
chmod 600 "$final_path/.env"
ynh_add_config --template="env" --destination="$final_path/src/.env"
chown $app:$app "$final_path/src/.env"
chmod 600 "$final_path/src/.env"
# Setup user credentials file
hashedpassword=$(echo -n "$password" | $final_path/src/node_modules/.bin/argon2-cli -e)

View file

@ -150,9 +150,9 @@ popd
zt_token="$(</var/lib/zerotier-one/authtoken.secret)"
zt_addr="localhost:$(</var/lib/zerotier-one/zerotier-one.port)"
ynh_add_config --template="env" --destination="$final_path/.env"
chown $app:$app "$final_path/.env"
chmod 600 "$final_path/.env"
ynh_add_config --template="env" --destination="$final_path/src/.env"
chown $app:$app "$final_path/src/.env"
chmod 600 "$final_path/src/.env"
#=================================================
# LINK CERTIFICATES