1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00

Remove useless copy of final_path during upgrade

This commit is contained in:
Maniack Crudelis 2019-02-15 19:57:17 +01:00
parent e581138cbb
commit 4f2ec313ce

View file

@ -75,24 +75,12 @@ path_url=$(ynh_normalize_url_path $path_url)
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
# Move old app dir
mv "$final_path" "$final_path.old"
ynh_print_info "Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path"
mkdir -p "$final_path"/sessions
# restore data
cp -a "$final_path.old/data" "$final_path"
# restore plugins
if [ -e "$final_path.old/plugins" ]
then
cp -a "$final_path.old/plugins" "$final_path"
fi
# delete temp directory
ynh_secure_remove "$final_path.old"
mkdir -p $final_path/sessions/
#=================================================
# NGINX CONFIGURATION