Milimetric has submitted this change and it was merged.

Change subject: Add skeleton for script to monitor geowiki-data files
......................................................................


Add skeleton for script to monitor geowiki-data files

Change-Id: I43a6a4db26cb206ea40868488e67257f49111284
---
A scripts/check_web_page.sh
1 file changed, 46 insertions(+), 0 deletions(-)

Approvals:
  Milimetric: Verified; Looks good to me, approved



diff --git a/scripts/check_web_page.sh b/scripts/check_web_page.sh
new file mode 100755
index 0000000..fe14dea
--- /dev/null
+++ b/scripts/check_web_page.sh
@@ -0,0 +1,46 @@
+#!/bin/bash
+#
+# This script checks if the geowiki files on the wmf webpages are up
+# to date and it's numbers are within reasonable ranges.
+#
+
+set -e
+
+# Absolute path to this script
+SCRIPT_DIR_ABS="$(dirname "$0")"
+
+#---------------------------------------------------
+# Dumps an error message to stderr and exits the script
+#
+# Concatenation of "Error:" $1, $2, ... gets used as error message.
+#
+# Input:
+#   $1, $2, ... used as error message
+#
+# Output:
+#   -
+#
+error() {
+    echo "Error: $@" >&2
+    exit 1
+}
+
+#---------------------------------------------------
+# Checks that geowiki's files are ok.
+#
+# Input:
+#   -
+#
+# Output:
+#   -
+#
+check() {
+    error "not yet implemented"
+}
+
+
+#---------------------------------------------------
+
+check
+
+echo "geowiki: Ok"

-- 
To view, visit https://gerrit.wikimedia.org/r/83809
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I43a6a4db26cb206ea40868488e67257f49111284
Gerrit-PatchSet: 1
Gerrit-Project: analytics/geowiki
Gerrit-Branch: master
Gerrit-Owner: QChris <[email protected]>
Gerrit-Reviewer: Milimetric <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to