Skip to content

Commit

Permalink
Merge pull request #1694 from NextDom/feature/FixIhmUpgrade
Browse files Browse the repository at this point in the history
Fix upgrade via IHM
  • Loading branch information
Sylvaner authored Feb 5, 2020
2 parents 0a2f876 + 1ec857c commit c6e95b3
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 c6e95b3

Please sign in to comment.