diff options
author | Arne Sund <arnels@stortinget.samfundet.no> | 2015-03-30 21:25:04 +0200 |
---|---|---|
committer | Arne Sund <arnels@stortinget.samfundet.no> | 2015-03-30 21:25:04 +0200 |
commit | 98820e626686334dc24d29454bf0a9ca2965015d (patch) | |
tree | 77ceea81c29a9ba4c86a149fcb281a08b840ef83 /clients/update-public-nms.sh | |
parent | 9007d35be7bc922f9d2f858bd40e5b96529cc943 (diff) | |
parent | 0713e9c8627abb20a701c16b74ef5f29d2231624 (diff) |
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'clients/update-public-nms.sh')
-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 |