Improve OS check

This commit is contained in:
hwdsl2
2026-04-25 18:21:52 -05:00
parent 06b442da4f
commit 18f78d7672
2 changed files with 8 additions and 4 deletions

View File

@@ -169,7 +169,8 @@ update_apt_cache() {
install_pkgs() {
p1=libcurl4-nss-dev
if [ "$os_ver" = "trixiesid" ] || [ "$os_ver" = 13 ]; then
if [ "$os_ver" = "trixiesid" ] || [ "$os_ver" = 13 ] \
|| [ "$os_ver" = "forkysid" ] || [ "$os_ver" = 14 ]; then
p1=libcurl4-gnutls-dev
fi
(
@@ -181,7 +182,8 @@ install_pkgs() {
) || exiterr2
if { [ "$os_type" = "ubuntu" ] && [ -n "$ubuntu_ver" ] \
&& printf '%s\n%s' "24.10" "$ubuntu_ver" | sort -C -V; } \
|| [ "$os_ver" = 13 ]; then
|| [ "$os_ver" = "trixiesid" ] || [ "$os_ver" = 13 ] \
|| [ "$os_ver" = "forkysid" ] || [ "$os_ver" = 14 ]; then
(
set -x
apt-get -yqq install systemd-dev >/dev/null

View File

@@ -274,7 +274,8 @@ detect_ipv6() {
install_vpn_pkgs() {
bigecho "Installing packages required for the VPN..."
p1=libcurl4-nss-dev
if [ "$os_ver" = "trixiesid" ] || [ "$os_ver" = 13 ]; then
if [ "$os_ver" = "trixiesid" ] || [ "$os_ver" = 13 ] \
|| [ "$os_ver" = "forkysid" ] || [ "$os_ver" = 14 ]; then
p1=libcurl4-gnutls-dev
fi
(
@@ -286,7 +287,8 @@ install_vpn_pkgs() {
) || exiterr2
if { [ "$os_type" = "ubuntu" ] && [ -n "$ubuntu_ver" ] \
&& printf '%s\n%s' "24.10" "$ubuntu_ver" | sort -C -V; } \
|| [ "$os_ver" = 13 ]; then
|| [ "$os_ver" = "trixiesid" ] || [ "$os_ver" = 13 ] \
|| [ "$os_ver" = "forkysid" ] || [ "$os_ver" = 14 ]; then
(
set -x
apt-get -yqq install systemd-dev >/dev/null