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