mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
install needrestart if not existing (#2543)
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
parent
8bab391237
commit
cbfdd7b84b
@ -35,6 +35,10 @@ is_process_running dpkg
|
||||
# Automatically restart services (Ubuntu 22.04)
|
||||
if ! version 16.04.10 "$DISTRO" 20.04.10
|
||||
then
|
||||
if [ ! -f /etc/needrestart/needrestart.conf ]
|
||||
then
|
||||
install_if_not needrestart
|
||||
fi
|
||||
if ! grep -rq "{restart} = 'a'" /etc/needrestart/needrestart.conf
|
||||
then
|
||||
# Restart mode: (l)ist only, (i)nteractive or (a)utomatically.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user