]> git.pld-linux.org Git - packages/systemd.git/commitdiff
- preserve renamed systemd-logind.conf and systemd-journald.conf
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 31 May 2012 10:51:30 +0000 (10:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    systemd.spec -> 1.176

systemd.spec

index 4e41c850ec61f6e858f0b13b59b02af0f960f79d..30804dfb8aa53320115013a7999f3ff025db2dd2 100644 (file)
@@ -839,6 +839,15 @@ fi
 %triggerpostun units -- systemd-units < 1:183
 /bin/systemctl --quiet enable systemd-udev-settle.service >/dev/null 2>&1 || :
 %{__rm} -f /etc/systemd/system/basic.target.wants/udev-settle.service >/dev/null 2>&1 || :
+# preserve renamed configs
+if [ -f /etc/systemd/systemd-journald.conf.rpmsave ]; then
+       %{__mv} /etc/systemd/journald.conf{,.rpmnew}
+       %{__mv} -f /etc/systemd/systemd-journald.conf.rpmsave /etc/systemd/journald.conf
+fi
+if [ -f /etc/systemd/systemd-logind.conf.rpmsave ]; then
+       %{__mv} /etc/systemd/logind.conf{,.rpmnew}
+       %{__mv} -f /etc/systemd/systemd-logind.conf.rpmsave /etc/systemd/logind.conf
+fi
 
 %post plymouth
 %systemd_reload
This page took 0.045359 seconds and 4 git commands to generate.