Changeset 2127


Ignore:
Timestamp:
Jan 31, 2012, 6:51:52 PM (13 years ago)
Author:
andersk
Message:
scripts-createrepo: Use paranoid ssh options
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/locker/sbin/scripts-createrepo

    r2126 r2127  
    66set -eux
    77
     8ssh='ssh -o GSSAPIAuthentication=yes -o GSSAPIDelegateCredentials=no'
     9
    810yum=/afs/athena.mit.edu/contrib/scripts/yum-repos/rpm-fc15
    911
    10 tmp=$(ssh root@scripts.mit.edu "\
     12tmp=$($ssh root@scripts.mit.edu "\
    1113set -eux
    1214tmp=\$(mktemp -dt createrepo.XXXXXX)
     
    1719
    1820new=$(mktemp -d -- "$yum/repodata.XXXXXX")
    19 rsync -avz -- "root@scripts.mit.edu:$tmp/repodata/" "$new"
     21rsync -avz -e "$ssh" -- "root@scripts.mit.edu:$tmp/repodata/" "$new"
    2022mv -b -T -- "$new" "$yum/repodata"
    2123rm -rf -- "$yum/repodata~"
    2224
    23 ssh root@scripts.mit.edu "\
     25$ssh root@scripts.mit.edu "\
    2426set -eux
    2527rm -rf -- '$tmp'
Note: See TracChangeset for help on using the changeset viewer.