]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_installinit
r417: * dh_installinit -r: stop init script in prerm on package removal,
[debhelper.git] / dh_installinit
index 7836a9e21b6ef38dbc742e8956d339d80886d21a..cd3fca487c3671a6eda115b390a4df411b0e7c91 100755 (executable)
@@ -55,10 +55,12 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) {
                        # -r on the command line sets R_FLAG. If it's set, there
                        # is no restart on upgrade.
                        if ($dh{R_FLAG}) {
-                               autoscript($PACKAGE,"postinst","postinst-init-norestart",
+                               autoscript($PACKAGE,"postinst", "postinst-init-norestart",
                                        "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
                                autoscript($PACKAGE,"postrm","postrm-init",
                                        "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
+                               autoscript($PACKAGE,"prerm","prerm-init-norestart",
+                                       "s/#SCRIPT#/$script/;s/#INITPARMS#/$params/");
                        }
                        else {
                                autoscript($PACKAGE,"postinst","postinst-init",