aboutsummaryrefslogtreecommitdiffstats
path: root/tools/apply-baseupdate.sh
blob: 055320c9de8f95c534a10e8f3d40995a62fe6d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

set -e

source include/tgmanage.cfg.sh
if [ -z ${PRIMARY} ]
then
	echo "Not configured!";
	exit 1;
fi;

ssh -l root ${PRIMARY} "/etc/init.d/isc-dhcp-server restart"
ssh -l root ${PRIMARY} "/usr/sbin/rndc reload"
ssh -l root ${SECONDARY} "/usr/sbin/rndc reload"