From 84217bc0b8beb60e082d6f836c4f6dc2e8d1fa28 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 17 Feb 2014 20:30:58 +0100 Subject: don’t delete /etc/systemd/, only the hierarchy below it (Thanks Andreas Beckmann) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is necessary since we now ship the /etc/systemd directory, so we should not delete it. --- script/deb-systemd-helper | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'script') diff --git a/script/deb-systemd-helper b/script/deb-systemd-helper index 9149d18..f6b0fe7 100755 --- a/script/deb-systemd-helper +++ b/script/deb-systemd-helper @@ -496,10 +496,10 @@ for my $scriptname (@ARGV) { # subdirectories. Necessary to cleanly pass a piuparts run. rmdir_if_empty('/var/lib/systemd/deb-systemd-helper-enabled'); - # Same with /etc/systemd, where we create symlinks. If systemd is not - # installed (and no other package shipping service files), this would - # make piuparts fail, too. - rmdir_if_empty('/etc/systemd'); + # Same with directories below /etc/systemd, where we create symlinks. + # If systemd is not installed (and no other package shipping service + # files), this would make piuparts fail, too. + rmdir_if_empty($_) for (grep { -d } ); } if ($action eq 'enable') { -- cgit v1.2.3