[Eisfair] scp-Problem nach Base-Update auf 2.3.9
Olaf Jaehrling
eisfair at ojaehrling.de
Mi Mär 4 10:11:16 CET 2015
Hallo Marcus,
Am 04.03.2015 um 09:48 schrieb Marcus Roeckrath:
>
> Wie ich schon schrieb:
>
> Die Änderung ist simpel und wir müssen sie nur an Jürgen antragen. :-))
>
> @Jürgen:
>
> Hast Du die Diskussion mitbekommen?
>
> # copy temporary file to final file
> # omit empty lines
> grep -v '^$' $ssh_authorized_keys_file_tmp > $ssh_authorized_keys_file
>
> rm -f $ssh_authorized_keys_file_tmp
> }
>
> wird zu
>
> # copy temporary file to final file
> # omit empty lines
> if [ -s $ssh_authorized_keys_file_private ] ; then
> cat $ssh_authorized_keys_file_private >> $ssh_authorized_keys_file_tmp
> fi
> grep -v '^$' $ssh_authorized_keys_file_tmp > $ssh_authorized_keys_file
> rm -f $ssh_authorized_keys_file_tmp
> }
>
> Zu Scriptbeginn
>
> ssh_authorized_keys_file_private="/root/.ssh/authorized_keys.private"
>
klingt gut.
Danke und Gruß
Olaf
Mehr Informationen über die Mailingliste Eisfair