From: Ivan Rako <Ivan.Rako@CARNet.hr> Date: Sun, 21 Oct 2007 21:50:09 +0000 (+0000) Subject: r2: X-Git-Tag: debian/3.5.6-1~11 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=dfcae96e6417b16ee4ee88e7ca0ea182121848a1;p=samba-cn.git r2: --- diff --git a/debian/postinst b/debian/postinst deleted file mode 100755 index eeb7068..0000000 --- a/debian/postinst +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh - -[ "$1" = "configure" ] || exit 0 - -konfiguriraj() { - if [ -f /etc/ntp.conf ]; then - cp -p /etc/ntp.conf /etc/ntp.conf.dpkg-old - fi - - if [ -f /etc/default/ntp-servers ]; then - cp -p /etc/default/ntp-servers /etc/default/ntp-servers.dpkg-old - fi - - cp /usr/share/doc/ntp-cn/ntp.conf.tmpl /etc - - cat > /etc/default/ntp-servers <<EOF -NTPSERVERS="zg1.ntp.carnet.hr ri.ntp.carnet.hr zg2.ntp.carnet.hr 127.127.1.0" -EOF -} - -if [ -f /usr/share/doc/ntp-cn/ntp.conf.tmpl -a -f /etc/ntp.conf ]; then - if ! cmp -s /usr/share/doc/ntp-cn/ntp.conf.tmpl /etc/ntp.conf; then - konfiguriraj - fi -fi - -# restartaj sve -if [ -x /etc/init.d/ntp ]; then - if [ -x /usr/sbin/invoke-rc.d ]; then - invoke-rc.d ntp stop - for i in 1 2 3 4 5 6 7 8 9 0; do - pgrep -u root -f /usr/sbin/ntpd >/dev/null && sleep 1 || break - done - invoke-rc.d ntp start - else - /etc/init.d/ntp stop - for i in 1 2 3 4 5 6 7 8 9 0; do - pgrep -u root -f /usr/sbin/ntpd >/dev/null && sleep 1 || break - done - /etc/init.d/ntp start - fi -fi