From: Jiri Slaby Date: Tue, 1 Mar 2011 09:45:56 +0000 (+0100) Subject: scripts: set executable the init scripts X-Git-Tag: v0.37.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52272718820db71dc55e319ccbe94e76fc7982a7;p=thirdparty%2Flibcgroup.git 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 --- 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