mirror of
https://github.com/YunoHost-Apps/lychee_ynh.git
synced 2024-09-03 19:36:36 +02:00
Update upgrade
This commit is contained in:
parent
5c372f89af
commit
b2d8f0472a
1 changed files with 1 additions and 6 deletions
|
@ -53,6 +53,7 @@ if [ -z "$public_path" ]; then
|
|||
public_path=/home/yunohost.app/$app
|
||||
mkdir -p $public_path
|
||||
ynh_app_setting_set --app=$app --key=public_path --value=$public_path
|
||||
cp -a "$final_path/public/uploads" "$public_path/uploads"
|
||||
fi
|
||||
|
||||
# Cleaning legacy permissions
|
||||
|
@ -92,12 +93,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=4
|
||||
|
||||
if [ "$version" -lt "4.3" ]; then
|
||||
mkdir -p $public_path/uploads
|
||||
# Move media to new path
|
||||
cp -a "$final_path/public/uploads" "$public_path/uploads"
|
||||
fi
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/public/dist/user.css $final_path/.env"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue