summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorRyan Egesdahl <ryan.egesdahl@mongodb.com>2020-11-23 13:19:47 -0800
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-24 20:27:43 +0000
commit0e69ddaa39b360d4083a55041b2f792c1cd61ec5 (patch)
tree5c77f10d326a4735ac3eedd11cf89a29fdb9bdd0 /debian
parentb7cf8fbfcc547015f7fcd8521f4890b8ee8598f6 (diff)
downloadmongo-0e69ddaa39b360d4083a55041b2f792c1cd61ec5.tar.gz
SERVER-52806 Don't assume systemd on all Debian systems
Diffstat (limited to 'debian')
-rw-r--r--debian/mongodb-enterprise-server.postinst4
-rw-r--r--debian/mongodb-enterprise-unstable-server.postinst4
-rw-r--r--debian/mongodb-org-server.postinst4
-rw-r--r--debian/mongodb-org-unstable-server.postinst4
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)