ALT Linux Bugzilla
– Attachment 2507 Details for
Bug 14969
ltsp-update-sshkeys don't update sshkeys in client chroot
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
full patch
ltsp-update-sshkeys.full_patch (text/plain), 1.62 KB, created by
Mike
on 2008-03-18 16:08:49 MSK
(
hide
)
Description:
full patch
Filename:
MIME Type:
Creator:
Mike
Created:
2008-03-18 16:08:49 MSK
Size:
1.62 KB
patch
obsolete
>--- ltsp-update-sshkeys 2007-08-17 17:27:06 +0400 >+++ /usr/sbin/ltsp-update-sshkeys 2008-03-18 11:59:05 +0300 >@@ -1,9 +1,9 @@ > #!/bin/sh > >-test -z "$clients" && clients=$(find /opt/ltsp/. -mindepth 1 -maxdepth 1 -type d 2>/dev/null) >+test -z "$clients" && clients=$(find /var/lib/ltsp5 -mindepth 1 -maxdepth 1 -type d 2>/dev/null) > hostname=$(hostname) > ips=$(ip -o addr show | awk '$3 == "inet" && $4 !~ /^127\./ { print $4 }' | sed -e 's,/[0-9][0-9]*\>,,g') >-output=$(tempfile) >+output=$(mktemp -t $(basename $0)-output.XXXXXXXX) > enc="dsa rsa" > > names="$hostname $ips" >@@ -17,8 +17,8 @@ > > for name in $names; do > for encryption in $enc; do >- if [ -f /etc/ssh/ssh_host_${encryption}_key.pub ]; then >- echo $(echo $name $(cat /etc/ssh/ssh_host_${encryption}_key.pub|awk '{split ($0, a, " "); print a[1]" "a[2]" "}')) >> $output >+ if [ -f /etc/openssh/ssh_host_${encryption}_key.pub ]; then >+ echo $(echo $name $(cat /etc/openssh/ssh_host_${encryption}_key.pub|awk '{split ($0, a, " "); print a[1]" "a[2]" "}')) >> $output > logger -f $logfile -t ltsp "# Creating ${encryption}-hostkey for $name" > else > logger -f $logfile -t ltsp "No ${encryption} key found for ${name}, please configure your ssh server correctly" >@@ -31,10 +31,10 @@ > fi > > for client in $clients; do >- if [ -d $client/etc/ssh ]; then >- install -m 644 $output $client/etc/ssh/ssh_known_hosts >+ if [ -d $client/etc/openssh ]; then >+ install -m 644 $output $client/etc/openssh/ssh_known_hosts > else >- echo "WARNING: $client/etc/ssh not found. skipping..." >+ echo "WARNING: $client/etc/openssh not found. skipping..." > fi > done >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14969
:
2506
| 2507