aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Macku <jamacku@redhat.com>2019-06-06 15:43:42 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2019-06-06 17:12:59 +0200
commitfe85d7bfa8909059716d17802b89454dfb8f9f19 (patch)
treef9be1f100fc5ecc48aa1646387b641cd9eea4457
parent95632676a94a32bfa0a334b8e7f1c0fc87ce1af4 (diff)
downloadinitscripts-fe85d7bfa8909059716d17802b89454dfb8f9f19.tar
initscripts-fe85d7bfa8909059716d17802b89454dfb8f9f19.tar.gz
initscripts-fe85d7bfa8909059716d17802b89454dfb8f9f19.tar.bz2
initscripts-fe85d7bfa8909059716d17802b89454dfb8f9f19.tar.xz
initscripts-fe85d7bfa8909059716d17802b89454dfb8f9f19.zip
Create symlink (/etc/init.d) to /etc/rc.d/init.d
Resolve problem when wasn't installed chkconfig package. BZ #1716386
-rw-r--r--Makefile1
-rw-r--r--initscripts.spec2
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 28dde49e..e780d847 100644
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,7 @@ install-post: install-etc
install -m 0755 -d $$dir; \
ln -srf $(DESTDIR)$(sysconfdir)/rc.d/rc$$idx.d $(DESTDIR)$(sysconfdir)/; \
done
+ ln -srf $(DESTDIR)$(sysconfdir)/rc.d/init.d $(DESTDIR)$(sysconfdir)/init.d
touch $(DESTDIR)$(sysconfdir)/rc.d/rc.local
chmod 0755 $(DESTDIR)$(sysconfdir)/rc.d/rc.local
diff --git a/initscripts.spec b/initscripts.spec
index 77abc7f7..ad0a9d5d 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -283,6 +283,8 @@ fi
# RC symlinks:
%{_sysconfdir}/rc[0-6].d
+%{_sysconfdir}/init.d
+
# ---------------
%{_bindir}/*