ga-infounused: Use `--no-textconv` in `git diff`
[sunny256-utils.git] / tail-errorlog
blobf6dd36b4c6d525dc6196923d8867919d1a5d5b14
1 #!/usr/bin/env bash
3 #==========================================================
4 # tail-errorlog
5 # File ID: 4647e9c2-5d46-11df-b57b-90e6ba3022ac
6 # tail -f på error_log til httpd(8).
7 #==========================================================
9 prefix=`date -u +"%Y/*%Y-%m-%dZ.error_log"`
10 if [ -e /sunba.mrk -o -e /svdbb.mrk ]; then
11 tail -f /var/log/apache/error.log $*
12 elif [ -e /carmbb.mrk ]; then
13 tail -f /var/log/apache2/$prefix $*
14 elif [ -e /grimme.mrk -o -e /recbb.mrk -o -e /toshbb.mrk -o -e /ba0614.mrk ]; then
15 tail -f /var/log/httpd/error_log $*
16 elif [ -e /nett.mrk ]; then
17 if [ "$1" = "sunbase" -o "$1" = "sunbase.org" ]; then
18 shift
19 tail -f /home/badata/wrt/sunbase/log/httpd/$prefix $*
20 else
21 tail -f /mnt/logs/httpd/$1/$prefix $*
22 shift
24 elif [ -e /nett2.mrk ]; then
25 tail -f \
26 /home/badata/wrt/sunbase/musthave.sunbase.org/log/httpd/error_log \
27 /home/badata/wrt/sunbase/snadder.sunbase.org/log/httpd/error_log \
28 /home/badata/wrt/sunbase/tmp.sunbase.org/log/httpd/error_log \
29 /var/log/apache/nett2.ba.no/*error_log \
30 /var/log/apache/nett2.ba.no/$prefix $*
31 elif [ -e $HOME/.petronas.mrk ]; then
32 tail -f /usr/local/apache/logs/error_log $*
33 else
34 echo $0: Ukjent maskin, kan ikke skrive ut error_log >&2
35 exit 1