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:
parent
e581138cbb
commit
4f2ec313ce
1 changed files with 2 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue