From c6ea30a650d182dfc647729cbfc3acd873668643 Mon Sep 17 00:00:00 2001 From: AllanNICOLE Date: Mon, 22 Aug 2022 20:55:02 +0200 Subject: [PATCH] Test config file --- scripts/upgrade | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index c20ae68..0ea685d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -169,6 +169,17 @@ chown -R $app:www-data "$final_path" chmod +x "$backend_path/vikunja" chown -R $app:www-data "$backend_path/files" +#================================================= +# UPGRADE A CONFIGURATION +#================================================= +ynh_script_progression --message="Upgrading a configuration file..." --weight=1 + +redis_db=$(ynh_redis_get_free_db) +ynh_add_config --template="../conf/config.yml" --destination="$backend_path/config.yml" + +chmod 400 "$backend_path/config.yml" +chown $app:$app "$backend_path/config.yml" + #================================================= # NGINX CONFIGURATION #=================================================