From e62b308d5a51cbbf31bec3073dfb7d8a3d6cd7c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 28 Jan 2024 12:04:27 +0100 Subject: [PATCH] Rename .env.template -> dot_env, add shebangs --- conf/{.env.template => dot_env} | 2 ++ conf/version.py | 4 +++- scripts/install | 2 +- scripts/upgrade | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) rename conf/{.env.template => dot_env} (99%) diff --git a/conf/.env.template b/conf/dot_env similarity index 99% rename from conf/.env.template rename to conf/dot_env index 3bf9550..ef812a3 100644 --- a/conf/.env.template +++ b/conf/dot_env @@ -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 diff --git a/conf/version.py b/conf/version.py index f2442f2..d1a456c 100644 --- a/conf/version.py +++ b/conf/version.py @@ -1,2 +1,4 @@ +#!/usr/bin/env python3 + VERSION_NUMBER = "__VERSION__" -BUILD_REF = "" \ No newline at end of file +BUILD_REF = "" diff --git a/scripts/install b/scripts/install index 712c499..88e7af9 100755 --- a/scripts/install +++ b/scripts/install @@ -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" diff --git a/scripts/upgrade b/scripts/upgrade index 32747ca..46548b0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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"