2
0
mirror of https://github.com/dadevel/wg-netns synced 2024-10-30 21:20:12 +00:00
wg-netns/setup.sh

10 lines
224 B
Bash
Raw Normal View History

2021-05-28 09:31:21 +00:00
#!/bin/sh
PS4='> '
set -eux
PREFIX="${PREFIX:-/usr/local}"
cd "$(dirname "$0")"
install -m 0755 -D ./wg-netns.py "$PREFIX/bin/wg-netns"
install -m 0644 -D ./wg-netns@.service "$PREFIX/lib/systemd/system/wg-netns@.service"