only restart dnsmasq on file change
This commit is contained in:
parent
195d6b5ce9
commit
1f565a6d6e
|
@ -11,10 +11,11 @@ cd $GIT_REPO
|
|||
|
||||
su -c "git pull" $USER
|
||||
|
||||
if [ ! cmp $GIT_REPO/rules /etc/dnsmasq.d/rules >/dev/null 2>&1 ] || [ ! cmp $GIT_REPO/general /etc/dnsmasq.d/general >/dev/null 2>&1 ];
|
||||
if ! cmp $GIT_REPO/rules /etc/dnsmasq.d/rules >/dev/null 2>&1 || ! cmp $GIT_REPO/general /etc/dnsmasq.d/general >/dev/null 2>&1 ;
|
||||
then
|
||||
cp $GIT_REPO/rules /etc/dnsmasq.d/rules
|
||||
cp $GIT_REPO/general /etc/dnsmasq.d/general
|
||||
|
||||
/usr/sbin/service dnsmasq restart
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue