X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpostinst;h=592bb9029708f19733452ae4019383b6b363c4cf;hb=91ed448c5977ecfedf1d0e89eca2160b91aa8586;hp=1acb14a922610701bc6c8832270323b6bd059e74;hpb=76d50a78077de1ffb53239078e0aa2da384b4f74;p=ntp-cn.git diff --git a/debian/postinst b/debian/postinst index 1acb14a..592bb90 100755 --- a/debian/postinst +++ b/debian/postinst @@ -1,5 +1,7 @@ #!/bin/sh +set -e + [ "$1" = "configure" ] || exit 0 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx @@ -12,7 +14,7 @@ konfiguriraj() { cp -p /etc/default/ntp-servers /etc/default/ntp-servers.dpkg-old fi - cp /usr/share/doc/ntp-cn/ntp.conf.tmpl /etc + cp /usr/share/doc/ntp-cn/ntp.conf.tmpl /etc/ntp.conf # Load CARNet Tools . /usr/share/carnet-tools/functions.sh @@ -36,3 +38,5 @@ if [ -x /etc/init.d/ntp ]; then /etc/init.d/ntp restart fi fi + +#DEBHELPER#