Skip to content

Commit cbfdd7b

Browse files
authored
install needrestart if not existing (#2543)
Signed-off-by: Daniel Hansson <[email protected]>
1 parent 8bab391 commit cbfdd7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nextcloud_update.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ is_process_running dpkg
3535
# Automatically restart services (Ubuntu 22.04)
3636
if ! version 16.04.10 "$DISTRO" 20.04.10
3737
then
38+
if [ ! -f /etc/needrestart/needrestart.conf ]
39+
then
40+
install_if_not needrestart
41+
fi
3842
if ! grep -rq "{restart} = 'a'" /etc/needrestart/needrestart.conf
3943
then
4044
# Restart mode: (l)ist only, (i)nteractive or (a)utomatically.

0 commit comments

Comments
 (0)