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-01-28 13:55:06 +01:00
parent 14af55e039
commit 7aa88d2366
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -94,7 +94,7 @@ then
tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
cp -a "$final_path/dist/user.css" "$tmpdir/user.css"
cp -a "$final_path/public/dist/user.css" "$tmpdir/user.css"
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
@ -103,14 +103,11 @@ then
ynh_setup_source --dest_dir="$final_path"
# Copy the admin saved settings from tmp directory to final path
cp -a "$tmpdiruser.css" "$final_path/config/dist/user.css"
cp -a "$tmpdiruser.css" "$final_path/public/dist/user.css"
# Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
ynh_install_composer --workdir="$final_path" --install_args="--prefer-source --no-dev"
pushd $final_path