X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=openssh-cn.git;a=blobdiff_plain;f=debian%2Fpostinst;h=fc0f9c74d93715fe4b69a4417dcce5ca75d4f35c;hp=9f457b5f1f9d2eaad7cfa2e9c0bd8639f601ffae;hb=HEAD;hpb=89cead69c120de006782e32853f5b975631d7ea2 diff --git a/debian/postinst b/debian/postinst index 9f457b5..fc0f9c7 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,7 +1,10 @@ #!/bin/sh set -e + [ "$1" = "configure" ] || exit 0 +[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx + # Load CARNet Tools . /usr/share/carnet-tools/functions.sh @@ -18,8 +21,12 @@ if [ -f /etc/ssh/sshd_config ]; then fi # restart -if [ -x /usr/sbin/invoke-rc.d ]; then - [ -x /etc/init.d/ssh ] && invoke-rc.d ssh restart -else - [ -x /etc/init.d/ssh ] && /etc/init.d/ssh restart -fi +invoke-rc.d ssh restart + +#if [ -x /usr/sbin/invoke-rc.d ]; then +# [ -x /etc/init.d/ssh ] && invoke-rc.d ssh restart +#else +# [ -x /etc/init.d/ssh ] && /etc/init.d/ssh restart +#fi + +#DEBHELPER#