From: Peter Palfrader Date: Sat, 17 May 2008 13:41:13 +0000 (+0200) Subject: And clean up the bugs I introduced while mucking with sgran's shell X-Git-Tag: userdir-ldap-0.3.24~1 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=f0943743a3b6284680966df0e8af6aa3468d9cf4 And clean up the bugs I introduced while mucking with sgran's shell --- diff --git a/ud-replicate b/ud-replicate index 56dbbd2..d2a065f 100755 --- a/ud-replicate +++ b/ud-replicate @@ -80,8 +80,8 @@ ln -sf `pwd -P`/ssh_known_hosts /etc/ssh if [ -e ${HOST}/ssh-keys.tar.gz ]; then export TMPDIR='/tmp/' tempdir=$(mktemp -d) - (cd $tempdir && tar -xf ${old}/${HOST}/ssh-keys.tar.gz) - ! [ -d userkeys ] || mkdir userkeys + tar -C "$tempdir" -xf ${HOST}/ssh-keys.tar.gz + [ -d userkeys ] || mkdir userkeys chmod 755 $tempdir rsync -a --delete-after $tempdir/ userkeys/ fi