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
...@@ -3,11 +3,21 @@ ...@@ -3,11 +3,21 @@
# #
class site_apache::common::autorestart { class site_apache::common::autorestart {
file { '/etc/systemd/system/apache2.service.d': file {
'/etc/systemd/system/apache2.service.d':
ensure => directory, ensure => directory,
owner => root, owner => 'root',
group => root, group => 'root',
mode => '0755', 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': ::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