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-04-19 16:11:51 +02:00
parent 652c1da559
commit a7735612aa
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -55,11 +55,6 @@ if [ -z "$public_path" ]; then
ynh_app_setting_set --app=$app --key=public_path --value=$public_path
fi
if [ ! -d "$public_path/uploads" ]; then
mkdir -p $public_path/uploads
mkdir -p $public_path/uploads/{big,import,medium,raw,small,thumb}
fi
# Cleaning legacy permissions
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all
@ -95,6 +90,11 @@ then
# Backup the config file in the temp dir
cp -a "$final_path/public/dist/user.css" "$tmpdir/user.css"
if [ "$version" -lt "4.3" ]; then
mkdir -p $public_path/uploads
cp -a "$final_path/public/uploads" "$public_path/uploads"
fi
# Move media to new path
cp -a "$final_path/public/uploads" "$public_path/uploads"
@ -147,16 +147,12 @@ ynh_add_fpm_config --usage=low --footprint=low --package="$extra_php_dependencie
#=================================================
ynh_script_progression --message="Installing Composer..." --weight=1
#ynh_secure_remove --file="$final_path/composer.lock"
# Upgrade composer itself
#ynh_install_composer --phpversion=$phpversion --workdir=$final_path --install_args="--prefer-source --no-dev"
ynh_install_composer --install_args="--ignore-platform-reqs"
ynh_install_composer --workdir="$final_path" --install_args="--ignore-platform-reqs"
#=================================================
# SETUP APPLICATION CONFIG
#=================================================
ynh_script_progression --message="Building..."
ynh_script_progression --message="Setip Lychee config..."
# Setup application config
ynh_add_config --template="../conf/.env.example" --destination="$final_path/.env"