Lines 11-21
then
Link Here
|
11 |
source_periodic_confs |
11 |
source_periodic_confs |
12 |
fi |
12 |
fi |
13 |
|
13 |
|
|
|
14 |
security_daily_compat_var security_status_logdir |
15 |
|
16 |
LOG="${security_status_logdir}" |
17 |
|
14 |
oldmask=$(umask) |
18 |
oldmask=$(umask) |
15 |
umask 066 |
19 |
umask 066 |
16 |
case "$monthly_accounting_enable" in |
20 |
case "$monthly_accounting_enable" in |
17 |
[Yy][Ee][Ss]) |
21 |
[Yy][Ee][Ss]) |
18 |
W=/var/log/utx.log |
22 |
W=${LOG}/utx.log |
19 |
rc=0 |
23 |
rc=0 |
20 |
remove=NO |
24 |
remove=NO |
21 |
if [ ! -f $W.0 ] |
25 |
if [ ! -f $W.0 ] |
Lines 28-33
case "$monthly_accounting_enable" in
Link Here
|
28 |
then |
32 |
then |
29 |
remove=YES |
33 |
remove=YES |
30 |
bzcat $W.0.bz2 > $W.0 || rc=1 |
34 |
bzcat $W.0.bz2 > $W.0 || rc=1 |
|
|
35 |
elif [ -f $W.0.xz ] |
36 |
then |
37 |
remove=YES |
38 |
xzcat $W.0.xz > $W.0 || rc=1 |
31 |
else |
39 |
else |
32 |
echo '$monthly_accounting_enable is set but' \ |
40 |
echo '$monthly_accounting_enable is set but' \ |
33 |
"$W.0 doesn't exist" |
41 |
"$W.0 doesn't exist" |