rename configuration files to their new names

This commit is contained in:
Lennart Poettering 2012-05-24 23:37:11 +02:00
parent 973c8d4ab5
commit f55ccc9bda
2 changed files with 9 additions and 4 deletions

7
.gitignore vendored
View File

@ -1,3 +1,4 @@
/systemd-*/
/systemd-4.tar.bz2
/systemd-5.tar.bz2
/systemd-6.tar.bz2
@ -12,9 +13,9 @@
/systemd-15.tar.bz2
/systemd-16.tar.bz2
/systemd-17.tar.bz2
.build-*.log
x86_64/
systemd-*src.rpm
/.build-*.log
/x86_64/
/systemd-*src.rpm
/systemd-18.tar.bz2
/systemd-19.tar.bz2
/systemd-20.tar.bz2

View File

@ -37,7 +37,7 @@ BuildRequires: libtool
Requires(post): authconfig
Requires(post): coreutils
Requires(post): gawk
Requires(pre): fileutils
Requires(pre): coreutils
Requires(pre): /usr/bin/getent /usr/sbin/groupadd
Requires: dbus
Requires: hwdata
@ -228,6 +228,10 @@ getent group dialout >/dev/null || /usr/sbin/groupadd -g 18 dialout || :
getent group floppy >/dev/null || /usr/sbin/groupadd -g 19 floppy || :
systemctl stop systemd-udev.service systemd-udev-control.socket systemd-udev-kernel.socket >/dev/null 2>&1 || :
# Rename configuration files that changed their names
/usr/bin/mv -n %{_sysconfdir}/systemd/systemd-logind.conf %{_sysconfdir}/systemd/logind.conf >/dev/null 2>&1 || :
/usr/bin/mv -n %{_sysconfdir}/systemd/systemd-journald.conf %{_sysconfdir}/systemd/journald.conf >/dev/null 2>&1 || :
%post
/sbin/ldconfig
/usr/bin/systemd-machine-id-setup > /dev/null 2>&1 || :