fixed symlinks to configuration files
After fresh installation, configuration files will be symbolic links to appropriate files in 'default' profile.
This commit is contained in:
parent
acad0bbd7a
commit
12968c1f26
2 changed files with 8 additions and 6 deletions
7
Makefile
7
Makefile
|
|
@ -89,7 +89,7 @@ install:
|
|||
|
||||
# Install config file
|
||||
mkdir -p $(DESTDIR)/etc
|
||||
install -m 0644 tuned.conf $(DESTDIR)/etc
|
||||
ln -s /etc/tune-profiles/default/tuned.conf $(DESTDIR)/etc/tuned.conf
|
||||
|
||||
mkdir -p $(DESTDIR)/etc/tune-profiles/
|
||||
|
||||
|
|
@ -109,14 +109,15 @@ install:
|
|||
install -m 755 -d $(DESTDIR)/etc
|
||||
install -m 755 -d $(DESTDIR)/etc/ktune.d
|
||||
install -m 755 -d $(DESTDIR)/etc/sysconfig
|
||||
install -m 644 ktune/ktune.sysconfig $(DESTDIR)/etc/sysconfig/ktune
|
||||
install -m 755 -d $(DESTDIR)/etc/rc.d/init.d
|
||||
install -m 755 ktune/ktune.init $(DESTDIR)/etc/rc.d/init.d/ktune
|
||||
ln -s /etc/tune-profiles/default/ktune.sysconfig $(DESTDIR)/etc/sysconfig/ktune
|
||||
ln -s /etc/tune-profiles/default/sysctl.ktune $(DESTDIR)/etc/ktune.d/tunedadm.conf
|
||||
|
||||
# Install tune-profiles
|
||||
install -m 755 -d $(DESTDIR)/etc/tune-profiles
|
||||
cp -a tune-profiles/* $(DESTDIR)/etc/tune-profiles
|
||||
install -m 0644 tuned-adm.conf $(DESTDIR)//etc/tune-profiles/active-profile
|
||||
install -m 0644 tuned-adm.conf $(DESTDIR)/etc/tune-profiles/active-profile
|
||||
|
||||
# Install bash completion
|
||||
mkdir -p $(DESTDIR)/etc/bash_completion.d
|
||||
|
|
|
|||
|
|
@ -82,15 +82,16 @@ fi
|
|||
%{_sbindir}/tuned-adm
|
||||
# consolehelper hard link
|
||||
%{_bindir}/tuned-adm
|
||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/tune-profiles/active-profile
|
||||
%config(noreplace) %{_sysconfdir}/tune-profiles/active-profile
|
||||
%{_sysconfdir}/tune-profiles
|
||||
%{_datadir}/tuned
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man5/*
|
||||
%{_mandir}/man8/*
|
||||
%attr(0755,root,root) %{_initddir}/ktune
|
||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/ktune
|
||||
%dir %attr(0755,root,root) %{_sysconfdir}/ktune.d
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/ktune
|
||||
%config(noreplace) %{_sysconfdir}/ktune.d/tunedadm.conf
|
||||
%dir %{_sysconfdir}/ktune.d
|
||||
%dir /var/log/tuned
|
||||
|
||||
%files utils
|
||||
|
|
|
|||
Loading…
Reference in a new issue