1
0
Fork 0

Update server-side/step3_node_setup_as_user_with_sudo.sh

This commit is contained in:
Support 2026-01-03 17:17:31 +00:00
parent 7b8cab09c8
commit d398b3390d

View file

@ -1,7 +1,7 @@
#!/bin/bash -eu #!/bin/bash -eu
############################################################################ ############################################################################
# # # #
# Run this as the Linux user with sudo (but NOT as root) # # Run this as the Linux user (and NOT as root) #
# # # #
############################################################################ ############################################################################
# Input variables # Input variables
@ -57,11 +57,9 @@ 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 read -p "are you doing IPv6 or IPv4? say '6' or '4' (6/4): " ARE_THEY_USING_IPV6
# Check the user's answer # Check the user's answer
if [[ "$ARE_THEY_USING_IPV6" == "6" ]]; then if [[ "$ARE_THEY_USING_IPV6" == "6" ]]; then
REPO_URL="git@git.simplifiedprivacy.is:codeking/sp-env-wireguard-ipv6.git" REPO_URL="git@git.simplifiedprivacy.com: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 elif [[ "$ARE_THEY_USING_IPV6" == "4" ]]; then
REPO_URL="git@git.simplifiedprivacy.is:codeking/sp-env-wireguard-ipv4.git" REPO_URL="git@git.simplifiedprivacy.com:codeking/sp-env-wireguard-ipv4.git"
#git clone git@git.simplifiedprivacy.is:codeking/sp-env-wireguard-ipv4.git wireguard
else else
echo "Please answer with 'yes' or 'no'." echo "Please answer with 'yes' or 'no'."
fi fi
@ -96,7 +94,6 @@ API_TLS_PRIVATE_KEY=
" > .env " > .env
sudo docker compose up -d --force-recreate sudo docker compose up -d --force-recreate
sleep 3 sleep 3
PUB_WIREGUARD_KEY=$(sudo docker exec -it wireguard wg | grep public)
echo echo
echo echo
echo echo
@ -104,7 +101,9 @@ echo "
Give these TWO things to Simplified Privacy, Give these TWO things to Simplified Privacy,
1) WireGuard Public Key is: 1) WireGuard Public Key is:
$PUB_WIREGUARD_KEY "
sudo docker exec -it wireguard wg | grep public
echo "
(This is what you're signing, it should not be be blank ABOVE this line) (This is what you're signing, it should not be be blank ABOVE this line)
2) API TOKEN PASS is: 2) API TOKEN PASS is: