Commit d2e92e32 authored by Sven enniK's avatar Sven enniK

small wg-backbone optimations

parent a1ce496d
Pipeline #1094 passed with stages
in 13 minutes and 26 seconds
......@@ -7,6 +7,7 @@
/etc/wireguard-backbone/wg-backbone.sh:
file.managed:
- source: salt://wireguard/etc/wireguard-backbone/wg-backbone.sh
- makedirs: true
- user: root
- group: root
- mode: 755
......@@ -16,7 +17,7 @@
/usr/local/bin/wg-backbone.sh:
file.symlink:
- target: /etc/wireguard-backbone/wg-backbone.sh
- force: True
- force: true
- require:
- file: /etc/wireguard-backbone/wg-backbone.sh
......
......@@ -107,8 +107,8 @@ accept_peer()
bmxd -c dev="$sub_ifname" /linklayer 1
if [ "$store" = "1" ]; then
echo "node $node" > "$peers_dir"/accept_$node
echo "key $key" >> "$peers_dir"/accept_$node
echo "node $node" > "$peers_dir"/accept_"$node"
echo "key $key" >> "$peers_dir"/accept_"$node"
fi
}
......
......@@ -121,6 +121,7 @@ wgvpn1_service_dead:
/etc/wireguard/gen-config.sh:
file.managed:
- source: salt://wireguard/etc/wireguard/gen-config.sh
- makedirs: true
- user: root
- group: root
- mode: 755
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment