--- /etc/periodic/monthly/200.accounting 2017-08-15 08:04:52.227897000 +0000 +++ /etc/periodic/monthly/200.accounting 2018-01-05 07:17:01.733077000 +0000 @@ -11,11 +11,15 @@ then source_periodic_confs fi +security_daily_compat_var security_status_logdir + +LOG="${security_status_logdir}" + oldmask=$(umask) umask 066 case "$monthly_accounting_enable" in [Yy][Ee][Ss]) - W=/var/log/utx.log + W=${LOG}/utx.log rc=0 remove=NO if [ ! -f $W.0 ] @@ -28,6 +32,10 @@ case "$monthly_accounting_enable" in then remove=YES bzcat $W.0.bz2 > $W.0 || rc=1 + elif [ -f $W.0.xz ] + then + remove=YES + xzcat $W.0.xz > $W.0 || rc=1 else echo '$monthly_accounting_enable is set but' \ "$W.0 doesn't exist"