From 77d274ca28f77b3dee30770f736ea2506575e19a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sun, 29 Jan 2023 15:50:55 +0100 Subject: [PATCH] Fix --- conf/.env | 1 - conf/config.yml | 2 +- scripts/install | 5 ++++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/conf/.env b/conf/.env index 194250a..3f10289 100644 --- a/conf/.env +++ b/conf/.env @@ -1,2 +1 @@ APP_SECRET=__KEY__ -DEFAULT_REPOSITORY_DIR=__DATADIR__ \ No newline at end of file diff --git a/conf/config.yml b/conf/config.yml index 60e30e4..e977403 100644 --- a/conf/config.yml +++ b/conf/config.yml @@ -1,7 +1,7 @@ # GitList configuration parameters: # Web application title - title: GitList + title: YunoHost # Locale configuration locale: en diff --git a/scripts/install b/scripts/install index abef65c..9cb5f43 100755 --- a/scripts/install +++ b/scripts/install @@ -121,10 +121,13 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 +ynh_add_config --template="../conf/config.yml" --destination="$final_path/config/config.yml" ynh_add_config --template="../conf/.env" --destination="$final_path/.env" -chmod 400 "$final_path/.env" +chmod 650 "$final_path/.env" chown $app:$app "$final_path/.env" +chmod 650 "$final_path/config/config.yml" +chown $app:$app "$final_path/config/config.yml" #================================================= # SETUP SSOWAT