From 9b2708b9e73d48c3c3c78e8afd03dd8de1416c00 Mon Sep 17 00:00:00 2001 From: Limezy Date: Sat, 13 Nov 2021 14:38:07 +0700 Subject: [PATCH] Update restore --- scripts/restore | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/restore b/scripts/restore index 203e9ea..c30c455 100755 --- a/scripts/restore +++ b/scripts/restore @@ -90,6 +90,16 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +#================================================= +# UPDATING A CONFIGURATION +#================================================= +ynh_script_progression --message="Updating the configuration file..." --time --weight=1 + +ynh_add_config --template="../conf/.env" --destination="$final_path/.env" + +chmod 400 "$final_path/.env" +chown $app:$app "$final_path/.env" + #================================================= # RESTORE MINIO #=================================================