1
0
Fork 0
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:
ericgaspar 2021-05-18 18:12:38 +02:00
parent 5c372f89af
commit b2d8f0472a
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -53,6 +53,7 @@ if [ -z "$public_path" ]; then
public_path=/home/yunohost.app/$app public_path=/home/yunohost.app/$app
mkdir -p $public_path mkdir -p $public_path
ynh_app_setting_set --app=$app --key=public_path --value=$public_path ynh_app_setting_set --app=$app --key=public_path --value=$public_path
cp -a "$final_path/public/uploads" "$public_path/uploads"
fi fi
# Cleaning legacy permissions # Cleaning legacy permissions
@ -92,12 +93,6 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." --weight=4 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 # 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" ynh_setup_source --dest_dir="$final_path" #--keep="$final_path/public/dist/user.css $final_path/.env"
fi fi