From c1ccf5ae7d8938d726fb1fd8cac9d826e0de8169 Mon Sep 17 00:00:00 2001 From: Mohammed Amar-Bensaber Date: Tue, 27 Aug 2024 22:22:07 +0200 Subject: build: copy wireguard secrets --- build.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 build.sh (limited to 'build.sh') diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..c97dc90 --- /dev/null +++ b/build.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Modifies the file hierarchy prior to build the Debian package. + +set -eux + +hash gbp + +# Builds wireguard configuration files. +# +# This mainly copies secret files and `wg0.conf` definition. +build_wireguard() { + cp -r ./secrets/files/etc/wireguard ./files/etc +} + +build_wireguard + +gbp buildpackage -- cgit v1.2.3