Skip to content

Commit

Permalink
Update OS check
Browse files Browse the repository at this point in the history
- Add a check for Ubuntu 24.10, which is not currently
  supported by this project. You may instead use
  Ubuntu 24.04 LTS.
  • Loading branch information
hwdsl2 committed Dec 27, 2024
1 parent ea64a36 commit c6f016f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions extras/vpnupgrade_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ Error: This script requires Debian >= 10 or Ubuntu >= 20.04.
EOF
exit 1
fi
if [ "$os_ver" = "trixiesid" ] && [ -f /etc/os-release ] \
&& [ "$(. /etc/os-release && printf '%s' "$VERSION_ID")" = "24.10" ]; then
exiterr "This script does not support Ubuntu 24.10."
fi
}

check_libreswan() {
Expand Down
4 changes: 4 additions & 0 deletions vpnsetup_ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ Error: This script requires Debian >= 10 or Ubuntu >= 20.04.
EOF
exit 1
fi
if [ "$os_ver" = "trixiesid" ] && [ -f /etc/os-release ] \
&& [ "$(. /etc/os-release && printf '%s' "$VERSION_ID")" = "24.10" ]; then
exiterr "This script does not support Ubuntu 24.10."
fi
}

check_iface() {
Expand Down

0 comments on commit c6f016f

Please sign in to comment.