mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
Get ride of previous sources
This commit is contained in:
parent
1751b59796
commit
6b0c6eb5b3
1 changed files with 11 additions and 0 deletions
|
@ -101,9 +101,20 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
|||
then
|
||||
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||
|
||||
tmpdir="$(mktemp -d)"
|
||||
cp "$final_path/.htconfig.php" "$tmpdir/.htconfig.php"
|
||||
cp "$final_path/php.log" "$tmpdir/php.log"
|
||||
rsync -a "$final_path/store" "$tmpdir/."
|
||||
ynh_secure_remove --file="$final_path"
|
||||
|
||||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path" --keep="store/ .htconfig.php php.log"
|
||||
ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons"
|
||||
|
||||
cp "$tmpdir/.htconfig.php" "$final_path/.htconfig.php"
|
||||
cp "$tmpdir/php.log" "$final_path/php.log"
|
||||
rsync -a "$tmpdir/store" "$final_path/."
|
||||
ynh_secure_remove --file="$tmpdir"
|
||||
fi
|
||||
|
||||
mkdir -p "$final_path/store"
|
||||
|
|
Loading…
Add table
Reference in a new issue