Changeset 2127
- Timestamp:
- Jan 31, 2012, 6:51:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/locker/sbin/scripts-createrepo
r2126 r2127 6 6 set -eux 7 7 8 ssh='ssh -o GSSAPIAuthentication=yes -o GSSAPIDelegateCredentials=no' 9 8 10 yum=/afs/athena.mit.edu/contrib/scripts/yum-repos/rpm-fc15 9 11 10 tmp=$( ssh root@scripts.mit.edu "\12 tmp=$($ssh root@scripts.mit.edu "\ 11 13 set -eux 12 14 tmp=\$(mktemp -dt createrepo.XXXXXX) … … 17 19 18 20 new=$(mktemp -d -- "$yum/repodata.XXXXXX") 19 rsync -avz - - "root@scripts.mit.edu:$tmp/repodata/" "$new"21 rsync -avz -e "$ssh" -- "root@scripts.mit.edu:$tmp/repodata/" "$new" 20 22 mv -b -T -- "$new" "$yum/repodata" 21 23 rm -rf -- "$yum/repodata~" 22 24 23 ssh root@scripts.mit.edu "\25 $ssh root@scripts.mit.edu "\ 24 26 set -eux 25 27 rm -rf -- '$tmp'
Note: See TracChangeset
for help on using the changeset viewer.