From 6069c02de2c5b309551f36f1ec6474fabc9ea037 Mon Sep 17 00:00:00 2001 From: mbugeia Date: Tue, 11 Oct 2016 23:01:52 +0200 Subject: [PATCH] Use rsync to move gogs source to avoid directory not empty error during upgrade --- scripts/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index 07bd428..9dd0189 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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" }