From 4db75759e25bd5b4586bb5cd98ceaf88f5f2b97f Mon Sep 17 00:00:00 2001 From: ewilly Date: Tue, 11 Oct 2016 20:34:08 +0200 Subject: [PATCH] update --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 4eccfd3..dd0f3ad 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,7 +17,7 @@ filesize=$(ynh_app_setting_get "$app" filesize) parent_path=/var/www data_path=/home/yunohost.app/"$app" final_path=$parent_path/"$app" -if [ ${filesize} -eq 0 ] +if [ -z "$filesize" ] then # in old script filesize was not saved as an setting filesize=$(cat /etc/nginx/conf.d/"$domain".d/"$app".conf | grep -Po 'client_max_body_size \K.*(?=;)') ynh_app_setting_set "$app" filesize "$filesize" @@ -35,7 +35,7 @@ ynh_app_setting_set "$app" version "$upstream_version" # download upstream_version version of bozon 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/"$upstream_version"/* "$final_path" +sudo rsync -avz --exclude="config.php" --exclude=".htaccess" /tmp/BoZoN-"$upstream_version"/* "$final_path" # configure nginx settings nginx_conf="/etc/nginx/conf.d/${domain}.d/${app}.conf"