Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin/build-master-status-from-mysql
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-17 14:19:33 +0100
committerErich Eckner <git@eckner.net>2018-01-17 14:19:33 +0100
commit72aa80b29963e4bca7e273463f4f62aeab5cc657 (patch)
treec0591aef247acb041ecd331ae2a2f344699cb1ad /bin/build-master-status-from-mysql
parent81e0f55ccc55da3d837d6247fa2cc27a25b08ffa (diff)
bin/build-master-status-from-mysql: print mysql-sanity
Diffstat (limited to 'bin/build-master-status-from-mysql')
-rwxr-xr-xbin/build-master-status-from-mysql14
1 files changed, 12 insertions, 2 deletions
diff --git a/bin/build-master-status-from-mysql b/bin/build-master-status-from-mysql
index 9626b27..d78d963 100755
--- a/bin/build-master-status-from-mysql
+++ b/bin/build-master-status-from-mysql
@@ -26,5 +26,15 @@ ${mysql_command} '
}
1 i <html><head><title>list of build slaves</title></head><body>
$ a </body></html>
- ' > \
- "${webserver_directory}/build-slaves.html"
+ ' | \
+ sponge "${webserver_directory}/build-slaves.html"
+
+mysql_sanity_check | \
+ sed '
+ s,^-.*$,<font color="#FF0000">\0</font>,
+ s,^+.*$,<font color="#00FF00">\0</font>,
+ s/$/<br>/
+ 1 i <html><head><title>sanity of the buildmaster'"'"'s mysql database</title></head><body>
+ $ a </body></html>
+ ' | \
+ sponge "${webserver_directory}/mysql-sanity.html"