From f894f608f78b6d6e47c7d185ba9a33c160ac2f4b Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 25 Nov 2017 16:46:56 +0100 Subject: bin/build-master-status: make nice ssh-log for website --- bin/build-master-status | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'bin/build-master-status') diff --git a/bin/build-master-status b/bin/build-master-status index c453427..bf307b4 100755 --- a/bin/build-master-status +++ b/bin/build-master-status @@ -545,6 +545,40 @@ if ${web}; then } > \ "${tmp_dir}/blacklist.html" + { + printf '%s\n' \ + '' \ + '' \ + 'log of ssh connections from build slaves' \ + '' \ + '' \ + '' + printf '' + printf '' \ + 'time' \ + 'build slave' \ + 'command' \ + 'arguments' + printf '\n' + if [ -r "${work_dir}/ssh-log" ]; then + while read -r date time slave command arguments; do + printf '' + printf '' \ + "${date} ${time}" \ + "${slave}" \ + "${command}" \ + "${arguments}" + printf '\n' + done < \ + "${work_dir}/ssh-log" + fi + printf '%s\n' \ + '
%s
%s
' \ + '' \ + '' + } > \ + "${tmp_dir}/ssh-log.html" + find "${tmp_dir}" -maxdepth 1 -type f | \ while read -r file; do cat "${file}" > \ -- cgit v1.2.3-70-g09d2