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>
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