From aebb7da142fb9a13c0b5bfdfd5b3907395ae4b06 Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 11 Oct 2016 21:44:13 +0200 Subject: [PATCH] update --- scripts/install | 1 - scripts/upgrade | 7 +------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/install b/scripts/install index 6f168d8..71eb0cd 100644 --- a/scripts/install +++ b/scripts/install @@ -38,7 +38,6 @@ ynh_app_setting_set "$app" admin_user "$admin" ynh_app_setting_set "$app" is_public "$is_public" ynh_app_setting_set "$app" domain "$domain" ynh_app_setting_set "$app" path "$path" -ynh_app_setting_set "$app" version "$upstream_version" ynh_app_setting_set "$app" filesize "$filesize" # download upstream_version version of bozon diff --git a/scripts/upgrade b/scripts/upgrade index 11d9862..3102d88 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -26,13 +26,8 @@ fi # add required packages ynh_package_install_from_equivs ../conf/"$app"-deps.control || ynh_die "Unable to install dependencies" -# retrieve upstream_version version of bozon -upstream_version=$(cat ../conf/upstream_version) - -# save app settings -ynh_app_setting_set "$app" version "$upstream_version" - # download upstream_version version of bozon +upstream_version=$(cat ../conf/upstream_version) wget -nc --quiet https://github.com/broncowdd/BoZoN/archive/"$upstream_version".zip -P /tmp sudo unzip -oq /tmp/"$upstream_version".zip -d /tmp sudo rsync -avz --exclude="config.php" --exclude=".htaccess" /tmp/BoZoN-"$upstream_version"/* "$final_path"