From 52272718820db71dc55e319ccbe94e76fc7982a7 Mon Sep 17 00:00:00 2001 From: Jiri Slaby Date: Tue, 1 Mar 2011 10:45:56 +0100 Subject: [PATCH] scripts: set executable the init scripts When installing the init scripts, mark them as executable so that they may be used immediately. [v2] * use INSTALL and INSTALL_SCRIPT to be autoconf-safe. Signed-off-by: Jiri Slaby Signed-off-by: Jan Safranek --- scripts/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.am b/scripts/Makefile.am index c78272cc..9d0f1916 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -3,8 +3,8 @@ EXTRA_DIST = init.d/cgconfig.in init.d/cgred.in if WITH_INITSCRIPT_INSTALL INITSCRIPTDIR=$(DESTDIR)$(sysconfdir)/rc.d/init.d install-exec-hook: - mkdir -p $(INITSCRIPTDIR) - cp init.d/cgconfig init.d/cgred $(INITSCRIPTDIR) + $(INSTALL) -d $(INITSCRIPTDIR) + $(INSTALL_SCRIPT) init.d/cgconfig init.d/cgred $(INITSCRIPTDIR) uninstall-hook: rm -f $(INITSCRIPTDIR)/cgconfig $(INITSCRIPTDIR)/cgred -- 2.47.2