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 #=================================================