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:
parent
4a0d6df2ee
commit
ba1445555f
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue