diff options
author | Oliver Smith <osmith@sysmocom.de> | 2021-12-17 18:21:43 +0100 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2021-12-20 13:35:19 +0000 |
commit | 68896ff0ae74e26e61e6979ecd07ccb27842b1b7 (patch) | |
tree | 776dd7a3f64fe75554489fa897ebd167f94fd0a0 | |
parent | 05902bd35eaa765d51a7ecff2dbc25c9fd44dda4 (diff) |
contrib/obs-mirror: adjust includelist path
Point at obs-mirror-include.txt from this git repository.
Related: OS#4862
Change-Id: I4c6a6e424fd727de4e8058c916aa7eb43e7eb4b2
-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/ |