Fix update scripts from test branch

This commit is contained in:
Orazio 2019-12-30 11:44:33 +01:00
parent a6087f8bda
commit 41984e5f40
4 changed files with 32 additions and 16 deletions

View file

@ -125,8 +125,8 @@ main(){
if [ -z "$UpdateCmd" ] || [ "$UpdateCmd" = "Reconfigure" ]; then
:
elif [ "$UpdateCmd" = "Update" ]; then
### To do: test the update script and implement update for WireGuard as well
$SUDO /opt/pivpn/update.sh
$SUDO /opt/pivpn/update.sh "$@"
exit 0
elif [ "$UpdateCmd" = "Repair" ]; then
source "$setupVars"
runUnattended=true