Skip to content

Commit

Permalink
Fix upgrade via IHM
Browse files Browse the repository at this point in the history
Fix #1653
  • Loading branch information
slobberbone committed Feb 5, 2020
1 parent fbd6498 commit 1ec857c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions install/scripts/debian-update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

apt update
apt install -y nextdom
3 changes: 1 addition & 2 deletions install/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 &');
}

/**
Expand Down

0 comments on commit 1ec857c

Please sign in to comment.