From fa9651f7cfbec432ae6748a8586a2612d527bbe8 Mon Sep 17 00:00:00 2001 From: realraum Date: Sat, 20 Mar 2010 07:45:37 +0000 Subject: [PATCH] .. --- update-web-status.sh | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 update-web-status.sh diff --git a/update-web-status.sh b/update-web-status.sh deleted file mode 100755 index 81c5ff1..0000000 --- a/update-web-status.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh - -URL_OPENED='https://www.realraum.at/cgi/status.cgi?pass=jako16&set=%3Chtml%3E%3Cbody%20bgcolor=%22lime%22%3E%3Ccenter%3E%3Cb%3ET%26uuml%3Br%20ist%20Offen%3C/b%3E%3C/center%3E%3C/body%3E%3C/html%3E' -URL_CLOSED='https://www.realraum.at/cgi/status.cgi?pass=jako16&set=%3Chtml%3E%3Cbody%20bgcolor=%22red%22%3E%3Cb%3E%3Ccenter%3ET%26uuml%3Br%20ist%20Geschlossen%3C/center%3E%3C/b%3E%3C/body%3E%3C/html%3E' - -if [ -z "$1" ]; then - echo "Usage: update-web-status.sh (open|close)" - exit 1 -fi - -case "$1" in - open) - wget --no-check-certificate -O /dev/null $URL_OPENED > /dev/null 2>&1 - ;; - close) - wget --no-check-certificate -O /dev/null $URL_CLOSED > /dev/null 2>&1 - ;; - *) - echo "Invalid argument '$1' != (open|close)" - exit 1; - ;; -esac - -if [ $? -ne 0 ]; then - echo "Error" - exit 2 -fi - -echo "Ok" -exit 0 -- 1.7.10.4