diff options
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/obs-mirror/obs-mirror.sh | 3 | ||||
-rwxr-xr-x | contrib/obs-mirror/test-include-list.sh | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/contrib/obs-mirror/obs-mirror.sh b/contrib/obs-mirror/obs-mirror.sh index 76317c4..8d25c2d 100755 --- a/contrib/obs-mirror/obs-mirror.sh +++ b/contrib/obs-mirror/obs-mirror.sh @@ -10,6 +10,7 @@ # See also: OS#4862 set -e -x +SCRIPT_DIR="$(realpath "$(dirname "$(realpath "$0")")")" # base directory on the local side BASE_DIR="/downloads/obs-mirror/" @@ -19,7 +20,7 @@ REMOTE="rsync.opensuse.org::opensuse-full-really-everything-including-repositori cd "$BASE_DIR" RSYNC_ARGS="-av --delete" -RSYNC_ARGS="$RSYNC_ARGS --files-from /home/pkgmirror/obs-mirror-include.txt --recursive" +RSYNC_ARGS="$RSYNC_ARGS --files-from $SCRIPT_DIR/obs-mirror-include.txt --recursive" DATE=`date +%Y%m%d-%H%M%S` # create output directory diff --git a/contrib/obs-mirror/test-include-list.sh b/contrib/obs-mirror/test-include-list.sh index 6766403..829e8f7 100755 --- a/contrib/obs-mirror/test-include-list.sh +++ b/contrib/obs-mirror/test-include-list.sh @@ -1,4 +1,5 @@ #!/bin/sh -ex +SCRIPT_DIR="$(realpath "$(dirname "$(realpath "$0")")")" BASE_DIR="/downloads/obs-mirror/" cd "$BASE_DIR" @@ -6,7 +7,7 @@ cd "$BASE_DIR" rsync \ -a \ --list-only \ - --files-from /home/pkgmirror/obs-mirror-include.txt \ + --files-from "$SCRIPT_DIR"/obs-mirror-include.txt \ --recursive \ "$(realpath .previous)"/ \ new-backup-dir/ |