Skip to content

Commit

Permalink
use new registration command
Browse files Browse the repository at this point in the history
  • Loading branch information
cmj2002 committed Apr 29, 2024
1 parent 48925b5 commit fbf955b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbf955b

Please sign in to comment.