1
0
Fork 0
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:
mbugeia 2016-10-11 23:01:52 +02:00
parent 13ecdbf066
commit 6069c02de2

View file

@ -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"
}