wg-ops/create.sh

18 lines
322 B
Bash
Raw Normal View History

2021-07-13 13:59:59 +08:00
#!/bin/bash
2021-07-26 21:32:23 +08:00
echo 'Detecting Public IP address...'
export WG_PUBLICIP=$(curl ident.me)
2021-07-13 13:59:59 +08:00
export WG_MYPRIK=$(wg genkey)
export WG_MYPUBK=$(echo $WG_MYPRIK | wg pubkey)
2021-07-31 16:30:32 +08:00
export TMUX_PATH=$(which tmux)
2021-07-13 13:59:59 +08:00
python3 tool_create.py
python3 tool_generate.py
2021-07-13 14:06:48 +08:00
chmod +x start.sh
2021-07-26 21:32:23 +08:00
chmod +x stop.sh
chmod +x restart.sh
2021-07-31 16:30:32 +08:00
chmod +x reload.sh