From 959d6d2867aa860e3811d4645211de18fab9da7d Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sat, 15 May 2021 16:47:52 +0200 Subject: [PATCH] fix 4.2 regression --- scripts/restore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/restore b/scripts/restore index 7adf86f..ccc6e99 100644 --- a/scripts/restore +++ b/scripts/restore @@ -97,8 +97,7 @@ ynh_restore_file --origin_path="$config_path/gitlab-persistent.rb" ynh_script_progression --message="Reinstalling GitLab..." --weight=50 source ../settings/scripts/upgrade.d/upgrade.last.sh -mkdir -p ../conf/ -cp ../settings/conf/$architecture.src.default ../conf/$architecture.src +cp ../settings/conf/$architecture.src.default ../settings/conf/$architecture.src ynh_replace_string --match_string="__VERSION__" --replace_string="$gitlab_version" --target_file="../conf/$architecture.src" ynh_replace_string --match_string="__SOURCE_FILENAME__" --replace_string="$gitlab_filename" --target_file="../conf/$architecture.src" ynh_replace_string --match_string="__DEBIAN_VERSION__" --replace_string="$gitlab_debian_version" --target_file="../conf/$architecture.src"