projects
/
ntp-cn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ovisnost o init-system-helpers
[ntp-cn.git]
/
debian
/
postinst
diff --git
a/debian/postinst
b/debian/postinst
index
1acb14a
..
5acabc4
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-1,5
+1,7
@@
#!/bin/sh
#!/bin/sh
+set -e
+
[ "$1" = "configure" ] || exit 0
[ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
[ "$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 -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
# Load CARNet Tools
. /usr/share/carnet-tools/functions.sh
@@
-29,10
+31,6
@@
if [ -f /usr/share/doc/ntp-cn/ntp.conf.tmpl -a -f /etc/ntp.conf ]; then
fi
# restartaj sve
fi
# restartaj sve
-if [ -x /etc/init.d/ntp ]; then
- if [ -x /usr/sbin/invoke-rc.d ]; then
- invoke-rc.d ntp restart
- else
- /etc/init.d/ntp restart
- fi
-fi
+invoke-rc.d ntp restart
+
+#DEBHELPER#