mirror of
https://github.com/YunoHost-Apps/glitchsoc_ynh.git
synced 2024-09-03 19:15:59 +02:00
Merge pull request #231 from YunoHost-Apps/testing
perf(upgrade): use mv in place of rsync for system directory
This commit is contained in:
commit
61a5235911
1 changed files with 3 additions and 3 deletions
|
@ -179,7 +179,7 @@ then
|
||||||
|
|
||||||
mkdir $tmpdir/system
|
mkdir $tmpdir/system
|
||||||
if [ -d "$final_path/live/public/system" ]; then
|
if [ -d "$final_path/live/public/system" ]; then
|
||||||
rsync -a "$final_path/live/public/system" "$tmpdir/."
|
mv --verbose --no-target-directory --backup=numbered "$final_path/live/public/system" "$final_path/system.tmp"
|
||||||
fi
|
fi
|
||||||
rsync -a "$config" "$tmpdir/."
|
rsync -a "$config" "$tmpdir/."
|
||||||
ynh_secure_remove --file="$final_path/live"
|
ynh_secure_remove --file="$final_path/live"
|
||||||
|
@ -188,8 +188,8 @@ then
|
||||||
# Temporary workaround for https://github.com/tootsuite/mastodon/issues/13292
|
# Temporary workaround for https://github.com/tootsuite/mastodon/issues/13292
|
||||||
ynh_replace_string --match_string="sidekiq-unique-jobs (6.0.18)" --replace_string="sidekiq-unique-jobs (6.0.20)" --target_file="$final_path/live/Gemfile.lock"
|
ynh_replace_string --match_string="sidekiq-unique-jobs (6.0.18)" --replace_string="sidekiq-unique-jobs (6.0.20)" --target_file="$final_path/live/Gemfile.lock"
|
||||||
|
|
||||||
if [ -d "$tmpdir/system" ]; then
|
if [ -d "$final_path/system.tmp" ]; then
|
||||||
rsync -a "$tmpdir/system" "$final_path/live/public/."
|
mv --verbose --no-target-directory "$final_path/system.tmp" "$final_path/live/public/system"
|
||||||
fi
|
fi
|
||||||
rsync -a "$tmpdir/.env.production" "$final_path/live/."
|
rsync -a "$tmpdir/.env.production" "$final_path/live/."
|
||||||
ynh_secure_remove --file="$tmpdir"
|
ynh_secure_remove --file="$tmpdir"
|
||||||
|
|
Loading…
Reference in a new issue