mirror of
https://github.com/YunoHost-Apps/tandoor_ynh.git
synced 2024-09-03 20:35:56 +02:00
Rename .env.template -> dot_env, add shebangs
This commit is contained in:
parent
0b82307d20
commit
e62b308d5a
4 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# only set this to true when testing/debugging
|
||||
# when unset: 1 (true) - dont unset this, just for development
|
||||
DEBUG=0
|
|
@ -1,2 +1,4 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
VERSION_NUMBER = "__VERSION__"
|
||||
BUILD_REF = ""
|
||||
BUILD_REF = ""
|
||||
|
|
|
@ -55,7 +55,7 @@ chown -R "$app:www-data" "$data_dir"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||
|
||||
ynh_add_config --template=".env.template" --destination="$install_dir/.env"
|
||||
ynh_add_config --template="dot_env" --destination="$install_dir/.env"
|
||||
|
||||
chmod 400 "$install_dir/.env"
|
||||
chown "$app:$app" "$install_dir/.env"
|
||||
|
|
|
@ -48,7 +48,7 @@ chown -R "$app:www-data" "$install_dir"
|
|||
#=================================================
|
||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||
|
||||
ynh_add_config --template=".env.template" --destination="$install_dir/.env"
|
||||
ynh_add_config --template="dot_env" --destination="$install_dir/.env"
|
||||
|
||||
chmod 400 "$install_dir/.env"
|
||||
chown "$app:$app" "$install_dir/.env"
|
||||
|
|
Loading…
Reference in a new issue