]> git.donarmstrong.com Git - debhelper.git/blobdiff - autoscripts/postinst-init
Typo. Closes: #653339
[debhelper.git] / autoscripts / postinst-init
index 976c6b3403065cb1e9e37fbd16d63c1d0cb9c32a..2430b2c0fc41e33e7cd4111a1f0e39c9a0054404 100644 (file)
@@ -1,2 +1,4 @@
-update-rc.d #SCRIPT# #INITPARMS# >/dev/null
-/etc/init.d/#SCRIPT# start
+if [ -x "/etc/init.d/#SCRIPT#" ]; then
+       update-rc.d #SCRIPT# #INITPARMS# >/dev/null
+       invoke-rc.d #SCRIPT# start || #ERROR_HANDLER#
+fi