From fbf955bf1302a40588af3c153c14dbc5d51fe9e6 Mon Sep 17 00:00:00 2001 From: Cao Mingjun Date: Mon, 29 Apr 2024 21:19:34 +0800 Subject: [PATCH] use new registration command --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 456d9a1..eeb49f4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -23,11 +23,11 @@ sleep "$WARP_SLEEP" # if /var/lib/cloudflare-warp/reg.json not exists, register the warp client if [ ! -f /var/lib/cloudflare-warp/reg.json ]; then - warp-cli register && echo "Warp client registered!" + warp-cli registration new && echo "Warp client registered!" # if a license key is provided, register the license if [ -n "$WARP_LICENSE_KEY" ]; then echo "License key found, registering license..." - warp-cli set-license "$WARP_LICENSE_KEY" && echo "Warp license registered!" + warp-cli registration license "$WARP_LICENSE_KEY" && echo "Warp license registered!" fi # connect to the warp server warp-cli connect