]> granicus.if.org Git - sysstat/commitdiff
Add new ZIP variable to sysstat parameters file
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 8 Jun 2014 16:10:30 +0000 (18:10 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 8 Jun 2014 16:10:30 +0000 (18:10 +0200)
Add the new ZIP variable to sysstat parameters file.
This variable contains the program used to compress data and reports
files.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sa2.in
sysstat.sysconfig.in

diff --git a/sa2.in b/sa2.in
index 0fbb9ed71e019a26d2219fbb156a0e2d74faef4a..2381ce32c475aa07f21abb09cf50adb0cd36f5ef 100644 (file)
--- a/sa2.in
+++ b/sa2.in
@@ -19,6 +19,7 @@ DATE=`date ${YESTERDAY} +%d`
 
 [ -r ${SYSCONFIG_DIR}/sysstat ] && . ${SYSCONFIG_DIR}/sysstat
 [ -d ${SA_DIR} ] || SA_DIR=@SA_DIR@
+[ -x ${ZIP} ] || ZIP="@ZIP"
 
 if [ ${HISTORY} -gt 28 ]
 then
index 8502e411b573bf44e81a22497eccd80389c5d6f1..cff7621c752d687e294516d3d6903aadd4a2099a 100644 (file)
@@ -15,3 +15,6 @@ SADC_OPTIONS="@COLLECT_ALL@"
 # Directory where sa and sar files are saved.
 SA_DIR=@SA_DIR@
 
+# Compression program to use.
+ZIP="@ZIP@"
+