1
0
Fork 0

Update server-side/step3_node_setup_as_user_with_sudo.sh

This commit is contained in:
Support 2025-12-20 19:32:10 +00:00
parent 9c48f6c099
commit 4c80003c6a

View file

@ -1,7 +1,7 @@
#!/bin/bash -eu
############################################################################
# #
# Run this as the Linux user (and NOT as root) #
# Run this as the Linux user with sudo (but NOT as root) #
# #
############################################################################
# Input variables
@ -57,9 +57,11 @@ export API_TOKEN=$(pwgen -s 48 1)
read -p "are you doing IPv6 or IPv4? say '6' or '4' (6/4): " ARE_THEY_USING_IPV6
# Check the user's answer
if [[ "$ARE_THEY_USING_IPV6" == "6" ]]; then
REPO_URL="git@git.simplifiedprivacy.com:codeking/sp-env-wireguard-ipv6.git"
REPO_URL="git@git.simplifiedprivacy.is:codeking/sp-env-wireguard-ipv6.git"
#git clone git@git.simplifiedprivacy.is:codeking/sp-env-wireguard-ipv6.git wireguard
elif [[ "$ARE_THEY_USING_IPV6" == "4" ]]; then
REPO_URL="git@git.simplifiedprivacy.com:codeking/sp-env-wireguard-ipv4.git"
REPO_URL="git@git.simplifiedprivacy.is:codeking/sp-env-wireguard-ipv4.git"
#git clone git@git.simplifiedprivacy.is:codeking/sp-env-wireguard-ipv4.git wireguard
else
echo "Please answer with 'yes' or 'no'."
fi
@ -99,13 +101,13 @@ echo
echo
echo
echo "
Give this to Simplified Privacy,
Give these TWO things to Simplified Privacy,
WireGuard Public Key:
1) WireGuard Public Key is:
$PUB_WIREGUARD_KEY
(this is what you're signing)
(This is what you're signing, it should not be be blank ABOVE this line)
API TOKEN PASS:
2) API TOKEN PASS is:
$API_TOKEN
"