SERVER-54386 Prevent install errors when systemd is not running
This commit is contained in:
committed by
Evergreen Agent
parent
5a76da986d
commit
8cf3de4ca7
5
debian/mongodb-enterprise-server.postinst
vendored
5
debian/mongodb-enterprise-server.postinst
vendored
@@ -39,9 +39,10 @@ case "$1" in
|
||||
chown mongodb:mongodb /var/log/mongodb
|
||||
fi
|
||||
|
||||
# Check for changes to the service file
|
||||
# Check for changes to the service file, but ignore errors when
|
||||
# systemd is not running.
|
||||
if $(command systemctl --help >/dev/null); then
|
||||
systemctl daemon-reload
|
||||
systemctl daemon-reload || true
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
@@ -39,9 +39,10 @@ case "$1" in
|
||||
chown mongodb:mongodb /var/log/mongodb
|
||||
fi
|
||||
|
||||
# Check for changes to the service file
|
||||
# Check for changes to the service file, but ignore errors when
|
||||
# systemd is not running.
|
||||
if $(command systemctl --help >/dev/null); then
|
||||
systemctl daemon-reload
|
||||
systemctl daemon-reload || true
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
5
debian/mongodb-org-server.postinst
vendored
5
debian/mongodb-org-server.postinst
vendored
@@ -39,9 +39,10 @@ case "$1" in
|
||||
chown mongodb:mongodb /var/log/mongodb
|
||||
fi
|
||||
|
||||
# Check for changes to the service file
|
||||
# Check for changes to the service file, but ignore errors when
|
||||
# systemd is not running.
|
||||
if $(command systemctl --help >/dev/null); then
|
||||
systemctl daemon-reload
|
||||
systemctl daemon-reload || true
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
5
debian/mongodb-org-unstable-server.postinst
vendored
5
debian/mongodb-org-unstable-server.postinst
vendored
@@ -39,9 +39,10 @@ case "$1" in
|
||||
chown mongodb:mongodb /var/log/mongodb
|
||||
fi
|
||||
|
||||
# Check for changes to the service file
|
||||
# Check for changes to the service file, but ignore errors when
|
||||
# systemd is not running.
|
||||
if $(command systemctl --help >/dev/null); then
|
||||
systemctl daemon-reload
|
||||
systemctl daemon-reload || true
|
||||
fi
|
||||
;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user