Changeset 2552
- Timestamp:
- Aug 1, 2014, 11:51:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc20-dev/locker/sbin/scripts-createrepo
r2129 r2552 6 6 set -eux 7 7 8 server="${1-scripts.mit.edu}" 9 8 10 ssh='ssh -o GSSAPIAuthentication=yes -o GSSAPIDelegateCredentials=no' 9 11 10 yum=/afs/athena.mit.edu/contrib/scripts/yum-repos/rpm-fc$($ssh root@scripts.mit.edu'lsb_release -rs')12 yum=/afs/athena.mit.edu/contrib/scripts/yum-repos/rpm-fc$($ssh "root@$server" 'lsb_release -rs') 11 13 [ -d "$yum" ] 12 14 13 tmp=$($ssh root@scripts.mit.edu"\15 tmp=$($ssh "root@$server" "\ 14 16 set -eux 15 17 tmp=\$(mktemp -dt createrepo.XXXXXX) … … 20 22 21 23 new=$(mktemp -d -- "$yum/repodata.XXXXXX") 22 rsync -avz -e "$ssh" -- "root@ scripts.mit.edu:$tmp/repodata/" "$new"24 rsync -avz -e "$ssh" -- "root@$server:$tmp/repodata/" "$new" 23 25 mv -b -T -- "$new" "$yum/repodata" 24 26 rm -rf -- "$yum/repodata~" 25 27 26 $ssh root@scripts.mit.edu"\28 $ssh "root@$server" "\ 27 29 set -eux 28 30 rm -rf -- '$tmp'
Note: See TracChangeset
for help on using the changeset viewer.