mirror of
https://github.com/IgorKha/wireguard-mikrotik.git
synced 2025-08-03 09:44:44 +02:00
misc: Add pre-commit
hook configuration
Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
This commit is contained in:
parent
78f19eb04d
commit
4338a68a01
10 changed files with 267 additions and 3 deletions
|
@ -42,7 +42,7 @@ function installWireGuard() {
|
|||
echo "Looks like you aren't running this installer on a Debian, Ubuntu, Fedora, CentOS, Oracle or Arch Linux system"
|
||||
exit 95
|
||||
fi
|
||||
|
||||
|
||||
#? Install WireGuard tools and module
|
||||
if [[ ${OS} == 'ubuntu' ]] || [[ ${OS} == 'debian' && ${VERSION_ID} -gt 10 ]]; then
|
||||
apt-get update
|
||||
|
@ -254,7 +254,7 @@ function newClient() {
|
|||
|
||||
mkdir -p "$(pwd)/wireguard/${SERVER_WG_NIC}/client/${CLIENT_NAME}" >/dev/null 2>&1
|
||||
HOME_DIR="$(pwd)/wireguard/${SERVER_WG_NIC}/client/${CLIENT_NAME}"
|
||||
|
||||
|
||||
# Create client file and add the server as a peer
|
||||
echo "[Interface]
|
||||
PrivateKey = ${CLIENT_PRIV_KEY}
|
||||
|
@ -325,7 +325,7 @@ function manageMenu() {
|
|||
}
|
||||
|
||||
#? Check for root, OS, WireGuard
|
||||
installCheck
|
||||
installCheck
|
||||
|
||||
#? Check server exist
|
||||
serverName
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue