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