diff options
author | root <root@tgmanage.gathering.org> | 2015-03-28 18:06:20 +0100 |
---|---|---|
committer | root <root@tgmanage.gathering.org> | 2015-03-28 18:06:20 +0100 |
commit | d89553b58f2f644e62f17d07b2a3aadac165644b (patch) | |
tree | 8f6514742d32e086e86d5b0a8fb7addab3f9c341 | |
parent | 85869b4ac378a39c20eefd3a6ef016f7cbc68766 (diff) |
Tweak for TG15-paths
-rwxr-xr-x | clients/update-public-nms.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/clients/update-public-nms.sh b/clients/update-public-nms.sh index fe384cb..8d56251 100755 --- a/clients/update-public-nms.sh +++ b/clients/update-public-nms.sh @@ -1,9 +1,12 @@ #!/bin/sh +YEAR=15 TGMANAGE=/root/tgmanage -DIR=$TGMANAGE/web/nms-public.gathering.org +DIR=/srv/www/nms-public.tg${YEAR}.gathering.org +set -x +mkdir -p $DIR -wget -qO$DIR/nettkart-dhcp.png.new http://nms.tg14.gathering.org/dhcpkart.pl -wget -qO$DIR/led.txt.new http://nms.tg14.gathering.org/led.pl +wget -qO$DIR/nettkart-dhcp.png.new http://nms.tg${YEAR}.gathering.org/dhcpkart.pl +wget -qO$DIR/led.txt.new http://nms.tg${YEAR}.gathering.org/led.pl mv $DIR/nettkart-dhcp.png.new $DIR/nettkart-dhcp.png mv $DIR/led.txt.new $DIR/led.txt /usr/bin/perl $TGMANAGE/clients/update-public-speedometer.pl > $DIR/speedometer.json.tmp |