mirror of
https://gitlab.com/fscarmen/warp.git
synced 2026-06-15 03:25:42 +08:00
Warp client supports Ubuntu 24.04
Former-commit-id: 37f742e9e657bccc2adf8cbbb20bddef039167f4
This commit is contained in:
@@ -2424,7 +2424,8 @@ client_install() {
|
||||
if grep -q "CentOS\|Fedora" <<< "$SYSTEM"; then
|
||||
curl -fsSl https://pkg.cloudflareclient.com/cloudflare-warp-ascii.repo | tee /etc/yum.repos.d/cloudflare-warp.repo
|
||||
else
|
||||
local VERSION_CODENAME=$(awk -F '=' '/VERSION_CODENAME/{print $2}' /etc/os-release)
|
||||
# 暂时没有 Ubuntu 24.04 (noble),替换为 22.04 (jammy)
|
||||
local VERSION_CODENAME=$(awk -F '=' '/VERSION_CODENAME/{print $2}' /etc/os-release | sed 's/noble/jammy/')
|
||||
[[ "$SYSTEM" = Debian && ! $(type -P gpg 2>/dev/null) ]] && ${PACKAGE_INSTALL[int]} gnupg
|
||||
[[ "$SYSTEM" = Debian && ! $(apt list 2>/dev/null | grep apt-transport-https ) =~ installed ]] && ${PACKAGE_INSTALL[int]} apt-transport-https
|
||||
curl https://pkg.cloudflareclient.com/pubkey.gpg | gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg
|
||||
@@ -2434,7 +2435,7 @@ client_install() {
|
||||
${PACKAGE_INSTALL[int]} cloudflare-warp
|
||||
[ "$(systemctl is-active warp-svc)" != active ] && ( systemctl start warp-svc; sleep 2 )
|
||||
settings
|
||||
elif [[ "$CLIENT" = 2 && $(warp-cli --accept-tos status 2>/dev/null) =~ 'Registration missing' ]]; then
|
||||
elif [[ "$CLIENT" = '2' && $(warp-cli --accept-tos status 2>/dev/null) =~ 'Registration missing' ]]; then
|
||||
[ "$(systemctl is-active warp-svc)" != active ] && ( systemctl start warp-svc; sleep 2 )
|
||||
settings
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user