projects
/
mirror
/
userdir-ldap.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
gpg2 output differs from gpg1 - fix GPGSearch
[mirror/userdir-ldap.git]
/
ud-zoneupdate
1
#!/bin/sh
2
set -e
3
4
sed -e "s/[1-9].*; Serial.*$/`date +%Y%m%d%H` ; Serial/" < $1 > $1.new
5
mv -f $1.new $1
6
if [ -e /etc/init.d/bind9 ]; then
7
/etc/init.d/bind9 reload > /dev/null 2>&1
8
else
9
/etc/init.d/bind reload > /dev/null 2>&1
10
fi