From: Sebastien GODARD Date: Mon, 16 Mar 2015 20:24:59 +0000 (+0100) Subject: Fix installation on systems w/o chkconfig command X-Git-Tag: v11.1.4~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf68e6fd326c36bd969cf2ddfe908762545fe138;p=sysstat Fix installation on systems w/o chkconfig command On systems without chkconfig command, the variable CHKCONFIG is empty. Its contents should be enclosed in double quotes to be properly tested. Signed-off-by: Sebastien GODARD --- diff --git a/Makefile.in b/Makefile.in index 6098a81..d87576c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -411,7 +411,7 @@ endif $(INSTALL_DATA) cron/sysstat-summary.timer $(DESTDIR)$(SYSTEMD_UNIT_DIR); \ elif [ -d $(DESTDIR)$(INIT_DIR) ]; then \ $(INSTALL_BIN) sysstat $(DESTDIR)$(INIT_DIR)/sysstat; \ - if [ -x $(CHKCONFIG) ]; then \ + if [ -x "$(CHKCONFIG)" ]; then \ cd $(DESTDIR)$(INIT_DIR) && $(CHKCONFIG) --add sysstat; \ else \ [ -d $(DESTDIR)$(RC2_DIR) ] || mkdir -p $(DESTDIR)$(RC2_DIR); \ @@ -423,7 +423,7 @@ endif fi \ elif [ -d $(DESTDIR)$(RC_DIR) ]; then \ $(INSTALL_BIN) sysstat $(DESTDIR)$(RC_DIR)/rc.sysstat; \ - if [ -x $(CHKCONFIG) ]; then \ + if [ -x "$(CHKCONFIG)" ]; then \ cd $(DESTDIR)$(RC_DIR) && $(CHKCONFIG) --add rc.sysstat; \ else \ [ -d $(DESTDIR)$(RC2_DIR) ] || mkdir -p $(DESTDIR)$(RC2_DIR); \