index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-02-19 19:18:32 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-02-19 19:18:32 +0100 |
commit | db88d4e5468084e37dbcf46361b04d22248e11fd (patch) | |
tree | ba7c60969dd6e6608d2f7424f8f0eea80eacfe12 | |
parent | 426210589120997b4bf991636ea5a16acbb964ae (diff) |
-rwxr-xr-x | bin/sanity-check | 22 |
diff --git a/bin/sanity-check b/bin/sanity-check index 39a2d10..601a940 100755 --- a/bin/sanity-check +++ b/bin/sanity-check @@ -105,7 +105,7 @@ touch "${tmp_dir}/messages" trap 'finish' EXIT if [ $# -eq 0 ]; then - set -- git-repositories build-list repos package-database state-files + set -- git-repositories build-list mysql repos package-database state-files fi while [ $# -gt 0 ]; do @@ -385,6 +385,26 @@ while [ $# -gt 0 ]; do ;; + mysql) + + [ ${silence} -gt 0 ] || \ + printf 'checking mysql-sanity-check-file ...' >> \ + "${tmp_dir}/messages" + + if [ -s "${webserver_directory}/mysql-sanity.html" ]; then + if [ ${silence} -le 1 ]; then + printf '\nThere is something wrong with the database:\n' + cat "${webserver_directory}/mysql-sanity.html" + fi + i_am_insane + fi + + [ ${silence} -gt 0 ] || \ + echo ' passed.' >> \ + "${tmp_dir}/messages" + + ;; + *) [ ${silence} -gt 1 ] || \ |