From 35f894081cc5fc9a76d4163d6c6a5a5ad73505d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 26 Apr 2023 12:18:55 +0200 Subject: [PATCH] fix --- conf/.env | 2 +- doc/POST_INSTALL.md | 4 ++-- scripts/upgrade | 12 +++++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/conf/.env b/conf/.env index be94136..c24e7c1 100644 --- a/conf/.env +++ b/conf/.env @@ -2,6 +2,6 @@ DATABASE_TYPE=postgresql DATABASE_URL=postgresql://__DB_USER__:__DB_PWD__@127.0.0.1:5432/__DB_NAME__ -DISABLE_TELEMETRY=1 +DISABLE_TELEMETRY=0 PORT=__PORT__ diff --git a/doc/POST_INSTALL.md b/doc/POST_INSTALL.md index 4f2834c..bc26452 100644 --- a/doc/POST_INSTALL.md +++ b/doc/POST_INSTALL.md @@ -1,6 +1,6 @@ Umami installation will create a default administrator account: -username: `admin` -password: `umami` +username: admin +password: umami The first thing you will want to do is log in and change your password. diff --git a/scripts/upgrade b/scripts/upgrade index 4f0494e..b38e332 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -33,7 +33,7 @@ then ynh_script_progression --message="Upgrading source files..." --weight=5 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$install_dir" --keep=".env" + ynh_setup_source --dest_dir="$install_dir" #--keep=".env" fi chmod -R o-rwx "$install_dir" @@ -55,6 +55,16 @@ ynh_script_progression --message="Upgrading NGINX web server configuration..." - # Create a dedicated NGINX config ynh_add_nginx_config +#================================================= +# ADD A CONFIGURATION +#================================================= +ynh_script_progression --message="Adding a configuration file..." --weight=1 + +ynh_add_config --template="../conf/.env" --destination="$install_dir/.env" + +chmod 650 "$install_dir/.env" +chown $app:$app "$install_dir/.env" + #================================================= # CONFIGURE THE APP #=================================================