From: Stephen Gran Date: Wed, 14 May 2008 21:27:10 +0000 (+0100) Subject: ahem, we need to actually look in the host subdir X-Git-Tag: userdir-ldap-0.3.24~5^2^2~4 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=151f3284a0bf3a551ad0c79b6a63b761b39b3f84 ahem, we need to actually look in the host subdir --- diff --git a/ud-replicate b/ud-replicate index 2e99d75..202d4b8 100755 --- a/ud-replicate +++ b/ud-replicate @@ -76,12 +76,14 @@ done ln -sf `pwd -P`/ssh-rsa-shadow /etc/ssh ln -sf `pwd -P`/ssh_known_hosts /etc/ssh -if [ -e ssh-keys.tar.gz ]; then +if [ -e ${HOST}/ssh-keys.tar.gz ]; then export TMPDIR='/tmp/' tempdir=$(mktemp -d) old=$(pwd -P) - cd $tempdir && tar -xvf $old/ssh-keys.tar.gz + cd $tempdir && tar -xvf ${old}/${HOST}/ssh-keys.tar.gz + cd old mkdir userkeys 2> /dev/null || true + chmod 755 $tempdir rsync -av --delete-after $tempdir/ userkeys/ fi