build: copy wireguard secrets

This commit is contained in:
Mohammed Amar-Bensaber 2024-08-27 22:22:07 +02:00
parent 3bdf09e661
commit c1ccf5ae7d
Signed by: renken
GPG key ID: 1F2BB159B645E575

18
build.sh Executable file
View file

@ -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