SISR/AP4/wireguard/wireguard-script/wireguard-init.sh
2022-02-11 16:25:19 +01:00

8 lines
172 B
Bash
Executable File

#!/bin/bash
bash wireguard.sh
cp endpoint-a.* wg0-a.conf /etc/wireguard
cd /etc/wireguard
mv wg0-a.conf wg0.conf
systemctl start wg-quick@wg0
systemctl enable wg-quick@wg0