https://sourceforge.net/tracker/index.php?func=detail&aid=3403857&group_id=17457...
authorJamie Cameron <jcameron@webmin.com>
Mon, 5 Sep 2011 02:10:02 +0000 (19:10 -0700)
committerJamie Cameron <jcameron@webmin.com>
Mon, 5 Sep 2011 02:10:02 +0000 (19:10 -0700)
Fall back if insserv doesn't work

makedebian.pl

index a04705a..c4502a9 100755 (executable)
@@ -313,7 +313,7 @@ if [ "$inetd" != "1" ]; then
        fi
 fi
 if [ "$product" = "usermin" ]; then
-       insserv $baseproduct >/dev/null 2>&1
+       (insserv $baseproduct || update-rc.d $baseproduct defaults) >/dev/null 2>&1
 fi
 cat >/etc/$baseproduct/uninstall.sh <<EOFF
 #!/bin/sh