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 &'); } /**