From 1ec857c25bfac9b4aa844c9e541524aa3bf337ed Mon Sep 17 00:00:00 2001 From: Slobberbone Date: Wed, 5 Feb 2020 21:15:25 +0100 Subject: [PATCH] Fix upgrade via IHM Fix https://github.com/NextDom/nextdom-core/issues/1653 --- install/scripts/debian-update.sh | 4 ++++ install/update.php | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 install/scripts/debian-update.sh diff --git a/install/scripts/debian-update.sh b/install/scripts/debian-update.sh new file mode 100755 index 000000000..cce9b81ab --- /dev/null +++ b/install/scripts/debian-update.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +apt update +apt install -y nextdom diff --git a/install/update.php b/install/update.php index a4ecf56de..e294f8ce8 100644 --- a/install/update.php +++ b/install/update.php @@ -98,8 +98,7 @@ function gitUpdate() */ function debianUpdate() { - exec(SystemHelper::getCmdSudo() . 'apt update > /dev/null 2>&1'); - exec(SystemHelper::getCmdSudo() . 'apt-get install -y nextdom'); + exec(SystemHelper::getCmdSudo() . 'setsid ' . NEXTDOM_ROOT . '/install/scripts/debian-update.sh > ' . NEXTDOM_LOG . '/update &'); } /**