1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hextris_ynh.git synced 2024-09-03 19:16:05 +02:00

[fix] Upgrade previous version

This commit is contained in:
Maniack Crudelis 2017-08-28 02:13:22 +02:00
parent 769920407e
commit 39820bb249

View file

@ -32,6 +32,12 @@ elif [ "$is_public" = "No" ]; then
is_public=0
fi
# If final_path doesn't exist, create it
if [ -z $final_path ]; then
final_path=/var/www/$app
ynh_app_setting_set $app final_path $final_path
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
@ -55,7 +61,6 @@ path_url=$(ynh_normalize_url_path $path_url)
# COPY SOURCES
#=================================================
ynh_app_setting_set $app final_path $final_path
# Copy files to the right place
cp -a ../sources/. $final_path