diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-01-12 14:37:31 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2017-01-13 02:18:15 -0300 |
commit | 552f60227b0bb1b26fa7e6a49d753688f5c23e23 (patch) | |
tree | e2b0717793ffdcb6e1d7b6e2caa2564bc4194fe0 /pcr/systemd-knock/systemd.install | |
parent | e290883a322d378b05a0777d179041dde3a5fd5d (diff) | |
download | abslibre-552f60227b0bb1b26fa7e6a49d753688f5c23e23.tar.gz abslibre-552f60227b0bb1b26fa7e6a49d753688f5c23e23.tar.bz2 abslibre-552f60227b0bb1b26fa7e6a49d753688f5c23e23.zip |
systemd-knock-232-1: updating version
Diffstat (limited to 'pcr/systemd-knock/systemd.install')
-rw-r--r-- | pcr/systemd-knock/systemd.install | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pcr/systemd-knock/systemd.install b/pcr/systemd-knock/systemd.install index f2978d973..b59de2008 100644 --- a/pcr/systemd-knock/systemd.install +++ b/pcr/systemd-knock/systemd.install @@ -10,12 +10,6 @@ add_journal_acls() { : } -maybe_reexec() { - if sd_booted; then - systemctl --system daemon-reexec - fi -} - post_common() { systemd-sysusers journalctl --update-catalog @@ -63,7 +57,11 @@ post_install() { post_upgrade() { post_common "$@" - maybe_reexec "$@" + # don't reexec if the old version is 231-1 or 231-2. + # https://github.com/systemd/systemd/commit/bd64d82c1c + if [[ $1 != 231-[12] ]] && sd_booted; then + systemctl --system daemon-reexec + fi local v upgrades=( 216-2 |