diff options
author | Joachim Tingvold <joachim@tingvold.com> | 2015-04-16 21:10:37 +0200 |
---|---|---|
committer | Joachim Tingvold <joachim@tingvold.com> | 2015-04-16 21:10:37 +0200 |
commit | 7147d88f6e3c15a2cce29fc39484280964ac81bc (patch) | |
tree | caefcba543049bb263335601b47116e52d685434 /clients/update-public-nms.sh | |
parent | cf10d6ed33446032a86c9d58b964c5fbda121550 (diff) | |
parent | 7337ac7e744e978ae93a9cd28a08fea728627287 (diff) |
Merge branch 'master' of github.com:tech-server/tgmanage
Diffstat (limited to 'clients/update-public-nms.sh')
-rwxr-xr-x | clients/update-public-nms.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/clients/update-public-nms.sh b/clients/update-public-nms.sh deleted file mode 100755 index 8d56251..0000000 --- a/clients/update-public-nms.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -YEAR=15 -TGMANAGE=/root/tgmanage -DIR=/srv/www/nms-public.tg${YEAR}.gathering.org -set -x -mkdir -p $DIR - -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 -mv $DIR/speedometer.json.tmp $DIR/speedometer.json - -/usr/bin/perl -i -pe 'use POSIX qw(strftime); my $timestamp = strftime("%a, %d %b %Y %H:%M:%S %z", localtime(time())); s/Sist oppdatert:.*/Sist oppdatert: $timestamp/g;' $DIR/dhcp.html -/usr/bin/perl -i -pe 'use POSIX qw(strftime); my $timestamp = strftime("%a, %d %b %Y %H:%M:%S %z", localtime(time())); s/Sist oppdatert:.*/Sist oppdatert: $timestamp/g;' $DIR/trafikk.html |