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
14af55e039
commit
7aa88d2366
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue