Update server-side/step3_node_setup_as_user_with_sudo.sh
This commit is contained in:
parent
7b8cab09c8
commit
d398b3390d
1 changed files with 6 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/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
|
||||
|
|
@ -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
|
||||
# Check the user's answer
|
||||
if [[ "$ARE_THEY_USING_IPV6" == "6" ]]; then
|
||||
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
|
||||
REPO_URL="git@git.simplifiedprivacy.com:codeking/sp-env-wireguard-ipv6.git"
|
||||
elif [[ "$ARE_THEY_USING_IPV6" == "4" ]]; then
|
||||
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
|
||||
REPO_URL="git@git.simplifiedprivacy.com:codeking/sp-env-wireguard-ipv4.git"
|
||||
else
|
||||
echo "Please answer with 'yes' or 'no'."
|
||||
fi
|
||||
|
|
@ -96,7 +94,6 @@ API_TLS_PRIVATE_KEY=
|
|||
" > .env
|
||||
sudo docker compose up -d --force-recreate
|
||||
sleep 3
|
||||
PUB_WIREGUARD_KEY=$(sudo docker exec -it wireguard wg | grep public)
|
||||
echo
|
||||
echo
|
||||
echo
|
||||
|
|
@ -104,7 +101,9 @@ echo "
|
|||
Give these TWO things to Simplified Privacy,
|
||||
|
||||
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)
|
||||
|
||||
2) API TOKEN PASS is:
|
||||
|
|
|
|||
Loading…
Reference in a new issue