From 2de8f0b821da1dbce1945eb7aacd920a9d8aad09 Mon Sep 17 00:00:00 2001 From: Nils VAN ZUIJLEN Date: Fri, 16 Apr 2021 11:22:17 +0200 Subject: [PATCH] Replace the version number in wakka.config.php --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 764d0c7..c83fea1 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -84,6 +84,9 @@ then # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" + ynh_replace_string --match_string="yeswiki_release' \?=> \?'.*',$"\ + --replace_string="yeswiki_release' => '$(ynh_app_upstream_version)',"\ + --target_file="$final_path/wakka.config.php" fi if [[ $(ynh_app_setting_get --app=$app --key=loginldap_version) != $loginldap_version ]]