Linfbb maintenance scripts modified.

Brain n1uro has write a script to getting reports sent to you nightly from your maintenance.

/usr/local/lib/fbb/script/maintenance/20_epurmess

#!/bin/bash
LIBDIR=/usr/local/lib/fbb
SYSOP=`/usr/local/sbin/fbbgetconf sysmail`
HADD=`/usr/local/sbin/fbbgetconf call`
MAIL=/usr/local/var/ax25/fbb/mail/mail.in

echo
echo "--- Running epurmess"
echo

$LIBDIR/tool/epurmess
ret=$?

echo "SP $SYSOP@$HADD" >> $MAIL
echo "MSG MAINT at $HADD" >> $MAIL
cat /usr/local/var/ax25/fbb/epurmess.res >> $MAIL
echo "/EX" >> $MAIL
exit $ret

/usr/local/lib/fbb/script/maintenance/20_epurwp

#!/bin/bash
LIBDIR=/usr/local/lib/fbb
MAIL=/usr/local/var/ax25/fbb/mail/mail.in
SYSOP=`/usr/local/sbin/fbbgetconf sysmail`
HADD=`/usr/local/sbin/fbbgetconf call`

echo
echo "--- Running epurwp"
echo

$LIBDIR/tool/epurwp 40 90
ret=$?

echo "SP $SYSOP@$HADD" >> $MAIL
echo "WP MAINT at $HADD" >> $MAIL
cat /usr/local/var/ax25/fbb/epurwp.res >> $MAIL
echo "/EX" >> $MAIL
exit $ret

I have some trouble to get things going so i change some line in the scipt.

I have change the line

SYSOP=`/usr/local/sbin/fbbgetconf sysmail`
HADD=`/usr/local/sbin/fbbgetconf call`

to

SYSOP=`/usr/local/sbin/fbbgetconf -f /usr/local/etc/ax25/fbb/fbb.conf sysop`
HADD=`/usr/local/sbin/fbbgetconf -f /usr/local/etc/ax25/fbb/fbb.conf call`

fbbgetconf needs a option.

Output off the script.

R:180115/0001Z @:PI8LAP.#ZL.NLD.EURO #:20813 [Kortgene] $:20813_PI8LAP

From: PI8LAP@PI8LAP.#ZL.NLD.EURO
To  : PD2LT@

1515974462

File cleared  :   33 private message(s)    
              : 5664 bulletin message(s)   
              : 4665 active message(s)     
              : 1032 killed message(s)     
              : 5697 total message(s)      
              :    8 archived message(s)   
              :   44 destroyed message(s)  
              :    0 Timed-out message(s)  
              :    0 No-Route message(s)   

Start computing     : 18-01-15 02:01
End computing       : 18-01-15 02:01
R:180115/0001Z @:PI8LAP.#ZL.NLD.EURO #:20814 [Kortgene] $:20814_PI8LAP

From: PI8LAP@PI8LAP.#ZL.NLD.EURO
To  : PD2LT@

1515974462

WP updated :   249 total record(s)      
           :     0 updated record(s)    
           :     1 deleted records(s)   
           :     0 WP update line(s)    

Start computing     : 18-01-15 01:01
End computing       : 18-01-15 01:01