]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
scripts: set executable the init scripts
authorJiri Slaby <jslaby@suse.cz>
Tue, 1 Mar 2011 09:45:56 +0000 (10:45 +0100)
committerJan Safranek <jsafrane@redhat.com>
Tue, 1 Mar 2011 11:17:36 +0000 (12:17 +0100)
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 <jslaby@suse.cz>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
scripts/Makefile.am

index c78272ccca406e34e818392b9bac59806e5997e3..9d0f19165b45aa6b01175f5ea4a9cd2d144ae909 100644 (file)
@@ -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