mirror of
https://github.com/YunoHost-Apps/jellyseerr_ynh.git
synced 2024-09-03 19:26:18 +02:00
full_replace=1
This commit is contained in:
parent
d6b0cb485d
commit
081c721336
1 changed files with 2 additions and 11 deletions
|
@ -41,18 +41,9 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..."
|
ynh_script_progression --message="Upgrading source files..."
|
||||||
# Move old app dir
|
|
||||||
mv ${install_dir} ${install_dir}.old
|
|
||||||
|
|
||||||
# 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="$install_dir" --full_replace=1
|
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep="$install_dir/config"
|
||||||
|
|
||||||
# restore data
|
|
||||||
cp -a ${install_dir}.old/config ${install_dir}
|
|
||||||
|
|
||||||
# delete temp directory
|
|
||||||
ynh_secure_remove --file=${install_dir}.old
|
|
||||||
fi
|
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue