SHA256
1
0
forked from pool/conman

Accepting request 563618 from home:eeich:branches:network:cluster

- Added an update message if configuration was changed automatically.

OBS-URL: https://build.opensuse.org/request/show/563618
OBS-URL: https://build.opensuse.org/package/show/network:cluster/conman?expand=0&rev=20
This commit is contained in:
Egbert Eich 2018-01-11 15:30:21 +00:00 committed by Git OBS Bridge
parent 8fd32a3697
commit 19e3b46f49

View File

@ -187,6 +187,11 @@ if [ $1 -eq 2 ]; then
if ! cmp /etc/conman.conf $tmpfile; then if ! cmp /etc/conman.conf $tmpfile; then
mv $tmpfile /etc/conman.conf mv $tmpfile /etc/conman.conf
chown %conman_u:%conman_g /etc/conman.conf chown %conman_u:%conman_g /etc/conman.conf
cat > %_localstatedir/adm/update-messages/%{name}-%{version}-%{release}-%{name}.txt <<EOF
The conman configuration in %_sysconfdir/conman.conf has been updated to the new pid and log
directory. Please check this file to make sure it is correct.
EOF
else else
rm $tmpfile rm $tmpfile
fi fi