projects
/
mirror
/
userdir-ldap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3c93db8
)
Update the ssh shadow files in /etc if they don't exist
author
joey
<>
Thu, 18 Nov 2004 17:44:27 +0000
(17:44 +0000)
committer
joey
<>
Thu, 18 Nov 2004 17:44:27 +0000
(17:44 +0000)
ud-replicate
patch
|
blob
|
history
diff --git
a/ud-replicate
b/ud-replicate
index
996adf0
..
2f7c3ec
100755
(executable)
--- a/
ud-replicate
+++ b/
ud-replicate
@@
-54,6
+54,8
@@
mv -f shadow.db.t shadow.db
mv -f group.db.t group.db
ln -sf "$HOST/ssh-rsa-shadow" .
ln -sf "$HOST/ssh_known_hosts" .
mv -f group.db.t group.db
ln -sf "$HOST/ssh-rsa-shadow" .
ln -sf "$HOST/ssh_known_hosts" .
+ln -sf `pwd -P`/ssh-rsa-shadow /etc/ssh
+ln -sf `pwd -P`/ssh_known_hosts /etc/ssh
if [ -x /usr/bin/dchroot ]; then
CHROOTS=`dchroot --listpaths`
if [ -x /usr/bin/dchroot ]; then
CHROOTS=`dchroot --listpaths`
@@
-69,8
+71,8
@@
if [ -x /usr/bin/dchroot ]; then
chroot "$c" makedb "/var/lib/misc/$HOST/group.tdb" -o /var/lib/misc/group.db.t
mv -f "$c/var/lib/misc/passwd.db.t" "$c/var/lib/misc/passwd.db"
mv -f "$c/var/lib/misc/group.db.t" "$c/var/lib/misc/group.db"
chroot "$c" makedb "/var/lib/misc/$HOST/group.tdb" -o /var/lib/misc/group.db.t
mv -f "$c/var/lib/misc/passwd.db.t" "$c/var/lib/misc/passwd.db"
mv -f "$c/var/lib/misc/group.db.t" "$c/var/lib/misc/group.db"
- ln -sf "$c/var/lib/misc/$HOST/ssh-rsa-shadow" "$c/var/lib/misc/"
ln -sf "$c/var/lib/misc/$HOST/ssh_known_hosts" "$c/var/lib/misc/"
ln -sf "$c/var/lib/misc/$HOST/ssh_known_hosts" "$c/var/lib/misc/"
+ ln -sf ../../var/lib/misc/ssh_known_hosts "$c/etc/ssh"
done
fi
done
fi