[Da-tools-commits] ./debian/userdir-ldap r407: And clean up the bugs I introduced while mucking with sgran's shell
Peter Palfrader
peter at palfrader.org
Sat May 17 13:41:13 UTC 2008
------------------------------------------------------------
revno: 407
committer: Peter Palfrader <peter at palfrader.org>
branch nick: userdir-ldap
timestamp: Sat 2008-05-17 15:41:13 +0200
message:
And clean up the bugs I introduced while mucking with sgran's shell
modified:
ud-replicate
-------------- next part --------------
=== modified file 'ud-replicate'
--- a/ud-replicate 2008-05-17 09:40:33 +0000
+++ b/ud-replicate 2008-05-17 13:41:13 +0000
@@ -80,8 +80,8 @@
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
More information about the Da-tools-commits
mailing list