update scriptlet for migrating to DynamicUser=
The directory /var/lib/systemd/journal-upload must not exist. If both private and non-private directory exist, then systemd cannot create link to private directory, and the service fails to start. This makes the script try to remove the non-private directory.
This commit is contained in:
parent
2125b9b134
commit
e0aa12142f
@ -633,6 +633,7 @@ if [ $1 -eq 1 ] ; then
|
||||
if [ -f %{_localstatedir}/lib/systemd/journal-upload/state -a ! -L %{_localstatedir}/lib/systemd/journal-upload ] ; then
|
||||
mkdir -p %{_localstatedir}/lib/private/systemd/journal-upload
|
||||
mv %{_localstatedir}/lib/systemd/journal-upload/state %{_localstatedir}/lib/private/systemd/journal-upload/.
|
||||
rmdir %{_localstatedir}/lib/systemd/journal-upload || :
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user