fixed typo in control
[openssh-cn.git] / debian / postinst
index 9f457b5..fc0f9c7 100755 (executable)
@@ -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#