1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00
This commit is contained in:
ewilly 2016-10-11 21:44:13 +02:00
parent 1d3393f450
commit aebb7da142
2 changed files with 1 additions and 7 deletions

View file

@ -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

View file

@ -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"