wg-ops/create.sh
2021-07-31 08:30:32 +00:00

18 lines
322 B
Bash
Executable File

#!/bin/bash
echo 'Detecting Public IP address...'
export WG_PUBLICIP=$(curl ident.me)
export WG_MYPRIK=$(wg genkey)
export WG_MYPUBK=$(echo $WG_MYPRIK | wg pubkey)
export TMUX_PATH=$(which tmux)
python3 tool_create.py
python3 tool_generate.py
chmod +x start.sh
chmod +x stop.sh
chmod +x restart.sh
chmod +x reload.sh