From: Ivan Rako Date: Tue, 18 Sep 2007 14:07:37 +0000 (+0000) Subject: r2: X-Git-Tag: debian/5.5p1-1~9 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=openssh-cn.git;a=commitdiff_plain;h=89cead69c120de006782e32853f5b975631d7ea2 r2: --- diff --git a/debian/postinst b/debian/postinst index 1e68c7e..9f457b5 100755 --- a/debian/postinst +++ b/debian/postinst @@ -3,16 +3,18 @@ set -e [ "$1" = "configure" ] || exit 0 +# Load CARNet Tools . /usr/share/carnet-tools/functions.sh + if [ -f /etc/ssh/sshd_config ]; then - check_and_sed '^PermitRootLogin yes' \ - 's/PermitRootLogin yes/PermitRootLogin no/g' \ - /etc/ssh/sshd_config || true + cp_check_and_sed '^PermitRootLogin yes' \ + 's/PermitRootLogin yes/PermitRootLogin no/g' \ + /etc/ssh/sshd_config || true - check_and_sed '^ReverseMappingCheck' \ - 's/^ReverseMappingCheck/#ReverseMappingCheck/g' \ - /etc/ssh/sshd_config || true + cp_check_and_sed '^ReverseMappingCheck' \ + 's/^ReverseMappingCheck/#ReverseMappingCheck/g' \ + /etc/ssh/sshd_config || true fi # restart