Commit a058ae64 authored by Michael Biebl's avatar Michael Biebl
Browse files

Small comment tweaks and indentation fixes

parent cf3b3bc7
......@@ -100,6 +100,7 @@ if dpkg --compare-versions "$2" lt "40-1"; then
fi
fi
# Create /etc/machine-id
systemd-machine-id-setup
if ! getent group systemd-journal >/dev/null; then
......@@ -118,22 +119,23 @@ if ! getent passwd systemd-resolve >/dev/null; then
adduser --system --group --no-create-home --home /run/systemd/resolve systemd-resolve
fi
# initial update of the Message Catalogs database
# Initial update of the Message Catalogs database
_update_catalog
# Make systemd-detect-virt utility usable for non-root users
setcap cap_dac_override,cap_sys_ptrace=ep /usr/bin/systemd-detect-virt || true
# We don’t ship /var/log/journal currently, so only run the following fix for
# systems where the administrator has explicitly enabled persistent logging by
# creating /var/log/journal.
if [ -d /var/log/journal ]; then
# Grant read access to /var/log/journal for members of the adm group
# via a filesystem ACL. This makes them able to read the journal.
# Failure is ignored since there might be file systems mounted without
# ACL support.
setfacl -R -nm g:adm:rx,d:g:adm:rx /var/log/journal || true
# Grant read access to /var/log/journal for members of the adm group
# via a filesystem ACL. This makes them able to read the journal.
# Failure is ignored since there might be file systems mounted without
# ACL support.
setfacl -R -nm g:adm:rx,d:g:adm:rx /var/log/journal || true
fi
setcap cap_dac_override,cap_sys_ptrace=ep /usr/bin/systemd-detect-virt || true
# Re-run systemctl enable for any service that was enabled when preinst was run.
if dpkg --compare-versions "$2" ge "204"; then
while read UNIT ; do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment