diff options
author | Ryan Egesdahl <ryan.egesdahl@mongodb.com> | 2020-11-23 13:19:47 -0800 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-08 21:40:17 +0000 |
commit | f3e9474a1482f4de4454480150ec77139c6e626f (patch) | |
tree | 3f0b31bd904e0769031812556d3a3e1e4c018341 /debian | |
parent | f6824598636d5a5323f58baf97513c7b8c37ebd0 (diff) | |
download | mongo-f3e9474a1482f4de4454480150ec77139c6e626f.tar.gz |
SERVER-52806 Don't assume systemd on all Debian systems
(cherry picked from commit 0e69ddaa39b360d4083a55041b2f792c1cd61ec5)
(cherry picked from commit c18a49d65c2488745694e17ed5d93e4601ce1174)
Diffstat (limited to 'debian')
-rw-r--r-- | debian/mongodb-enterprise-server.postinst | 4 | ||||
-rw-r--r-- | debian/mongodb-enterprise-unstable-server.postinst | 4 | ||||
-rw-r--r-- | debian/mongodb-org-server.postinst | 4 | ||||
-rw-r--r-- | debian/mongodb-org-unstable-server.postinst | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/debian/mongodb-enterprise-server.postinst b/debian/mongodb-enterprise-server.postinst index 40f5976c044..a09e41f8edf 100644 --- a/debian/mongodb-enterprise-server.postinst +++ b/debian/mongodb-enterprise-server.postinst @@ -40,7 +40,9 @@ case "$1" in fi # Check for changes to the service file - systemctl daemon-reload + if $(command systemctl --help >/dev/null); then + systemctl daemon-reload + fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/mongodb-enterprise-unstable-server.postinst b/debian/mongodb-enterprise-unstable-server.postinst index 40f5976c044..a09e41f8edf 100644 --- a/debian/mongodb-enterprise-unstable-server.postinst +++ b/debian/mongodb-enterprise-unstable-server.postinst @@ -40,7 +40,9 @@ case "$1" in fi # Check for changes to the service file - systemctl daemon-reload + if $(command systemctl --help >/dev/null); then + systemctl daemon-reload + fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/mongodb-org-server.postinst b/debian/mongodb-org-server.postinst index 40f5976c044..a09e41f8edf 100644 --- a/debian/mongodb-org-server.postinst +++ b/debian/mongodb-org-server.postinst @@ -40,7 +40,9 @@ case "$1" in fi # Check for changes to the service file - systemctl daemon-reload + if $(command systemctl --help >/dev/null); then + systemctl daemon-reload + fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/mongodb-org-unstable-server.postinst b/debian/mongodb-org-unstable-server.postinst index 40f5976c044..a09e41f8edf 100644 --- a/debian/mongodb-org-unstable-server.postinst +++ b/debian/mongodb-org-unstable-server.postinst @@ -40,7 +40,9 @@ case "$1" in fi # Check for changes to the service file - systemctl daemon-reload + if $(command systemctl --help >/dev/null); then + systemctl daemon-reload + fi ;; abort-upgrade|abort-remove|abort-deconfigure) |