--- a/debian/postinst Wed Nov 30 10:48:57 2011 +0100
+++ b/debian/postinst Wed Nov 30 11:32:20 2011 +0100
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# postinst script for ha-sync
#
# see: dh_installdeb(1)
@@ -22,8 +22,8 @@
configure)
{
- update-rc.d ha-hostname start 3 S .
- update-rc.d ha-config start 30 S .
+ insserv ha-hostname
+ insserv ha-config
test -f /etc/ha-sync/id_rsa || {
ssh-keygen -N "" -C "ha-sync@`hostname`" -f /etc/ha-sync/id_rsa >&2
@@ -57,10 +57,10 @@
echo EXCLUDE="'$RET'"
} >> $TMP
- ucf $TMP /etc/ha-sync/ha-sync.conf
+ ucf --debconf-ok $TMP /etc/ha-sync/ha-sync.conf
## Exclude list
- ucf /usr/share/doc/ha-sync/examples/exclude.ex /etc/ha-sync/exclude
+ ucf --debconf-ok /usr/share/doc/ha-sync/examples/exclude.ex /etc/ha-sync/exclude
## noch Verzeichnisse
source /etc/ha-sync/ha-sync.conf