Skip to content
Snippets Groups Projects
Verified Commit f9ff6afe authored by micah's avatar micah :speech_balloon:
Browse files

bug: Set .placeholder to fix removal

Add a .placeholder file so the directory doesn't get removed by
deb-systemd-helper when a package runs a purge in its postrm. This is a
work-around and fixes #8841. It probably wont be needed post-jessie.
parent a38a421a
Branches
Tags
No related merge requests found
Pipeline #
......@@ -3,11 +3,21 @@
#
class site_apache::common::autorestart {
file { '/etc/systemd/system/apache2.service.d':
ensure => directory,
owner => root,
group => root,
mode => '0755',
file {
'/etc/systemd/system/apache2.service.d':
ensure => directory,
owner => 'root',
group => 'root',
mode => '0755';
# Add .placeholder file so directory doesn't get removed by
# deb-systemd-helper in a package removal postrm, see
# issue #8841 for more details.
'/etc/systemd/system/apache2.service.d/.placeholder':
ensure => file,
owner => 'root',
group => 'root',
mode => '0755';
}
::systemd::unit_file { 'apache2.service.d/autorestart.conf':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment