mirror of
https://github.com/YunoHost-Apps/gogs_ynh.git
synced 2024-09-03 20:36:23 +02:00
Use rsync to move gogs source to avoid directory not empty error during upgrade
This commit is contained in:
parent
13ecdbf066
commit
6069c02de2
1 changed files with 1 additions and 1 deletions
|
@ -40,6 +40,6 @@ extract_gogs() {
|
|||
|| ynh_die "Unable to download Gogs tarball"
|
||||
unzip -q "$gogs_tarball" -d "$TMPDIR" \
|
||||
|| ynh_die "Unable to extract Gogs tarball"
|
||||
sudo mv "$TMPDIR"/gogs/* "$DESTDIR"
|
||||
sudo rsync -a "$TMPDIR"/gogs/* "$DESTDIR"
|
||||
rm -rf "$gogs_tarball" "$TMPDIR"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue