~ubuntu-branches/debian/sid/init-system-helpers/sid

« back to all changes in this revision

Viewing changes to script/deb-systemd-helper

  • Committer: Package Import Robot
  • Author(s): Michael Stapelberg
  • Date: 2014-02-17 20:32:54 UTC
  • Revision ID: package-import@ubuntu.com-20140217203254-fz22ui1zdz9lmzpt
Tags: 1.16
Don’t delete /etc/systemd/, only the hierarchy below /etc/systemd/system/.
This is necessary to fix piuparts warnings since we ship
/etc/systemd/system since i-s-h 1.15 (Thanks Andreas Beckmann).

Show diffs side-by-side

added added

removed removed

Lines of Context:
496
496
        # subdirectories. Necessary to cleanly pass a piuparts run.
497
497
        rmdir_if_empty('/var/lib/systemd/deb-systemd-helper-enabled');
498
498
 
499
 
        # Same with /etc/systemd, where we create symlinks. If systemd is not
500
 
        # installed (and no other package shipping service files), this would
501
 
        # make piuparts fail, too.
502
 
        rmdir_if_empty('/etc/systemd');
 
499
        # Same with directories below /etc/systemd, where we create symlinks.
 
500
        # If systemd is not installed (and no other package shipping service
 
501
        # files), this would make piuparts fail, too.
 
502
        rmdir_if_empty($_) for (grep { -d } </etc/systemd/system/*>);
503
503
    }
504
504
 
505
505
    if ($action eq 'enable') {