projects
/
mirror
/
userdir-ldap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge from alioth:
[mirror/userdir-ldap.git]
/
ud-replicate
diff --git
a/ud-replicate
b/ud-replicate
index
56dbbd2
..
a9e294b
100755
(executable)
--- 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)
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
+
mkdir -p
userkeys
chmod 755 $tempdir
rsync -a --delete-after $tempdir/ userkeys/
fi
chmod 755 $tempdir
rsync -a --delete-after $tempdir/ userkeys/
fi