updates to debian build

This commit is contained in:
Mario Voigt 2025-03-11 15:36:53 +01:00
parent 61b63cfe2a
commit 4e76ab944b
4 changed files with 29 additions and 20 deletions

View File

@ -1,4 +1,3 @@
./etc/bffh/bffh.dhall /etc/bffh/
./etc/bffh/config_examples/ /etc/bffh/config_examples/ ./etc/bffh/config_examples/ /etc/bffh/config_examples/
./etc/logrotate.d/bffhd /etc/logrotate.d/ ./etc/logrotate.d/bffhd /etc/logrotate.d/

View File

@ -50,6 +50,35 @@ echo -e " - please check the CHANGELOG for latest modifications to the server at
echo -e " - further information about configuration and usage can be found at \e[36mhttps://fab-access.org/configure\e[0m" echo -e " - further information about configuration and usage can be found at \e[36mhttps://fab-access.org/configure\e[0m"
echo -e " - the client application to access your server (called 'Borepin') can be found at \e[36mhttps://fab-access.org/download\e[0m\n" echo -e " - the client application to access your server (called 'Borepin') can be found at \e[36mhttps://fab-access.org/download\e[0m\n"
# create default bffh.dhall from --print-default
if command -v dhall 2>&1 >/dev/null; then
/usr/bin/bffhd --print-default | dhall format > /etc/bffh/bffh.dhall
else
cat <<EOF > /etc/bffh/bffh.dhall
{-
If you want to re-format this file, please install the dhall package:
sudo $PACKMAN install dhall
Then you can use some command syntax like:
CFG="/etc/bffh/bffh.dhall" && \\
dhall format < \$CFG && \\
dhall format < \$CFG > \$CFG.bup && \\
rm \$CFG && \\
mv \$CFG.bup \$CFG
You can also re-create this file easily by:
/usr/bin/bffhd --print-default | dhall format > /etc/bffh/bffh.dhall
-}
EOF
/usr/bin/bffhd --print-default >> /etc/bffh/bffh.dhall
fi
# check for Mosquitto availability on local system # check for Mosquitto availability on local system
if command -v dnf 2>&1 >/dev/null; then if command -v dnf 2>&1 >/dev/null; then
dnf list installed mosquitto > /dev/null 2>&1 dnf list installed mosquitto > /dev/null 2>&1

View File

@ -1,3 +0,0 @@
version=4
opts="searchmode=plain" \
https://gitlab.com/fabinfra/@PACKAGE@/tags?sort=updated_desc -/archive/v?\d[\d.]+/@PACKAGE@-@ANY_VERSION@@ARCHIVE_EXT@

View File

@ -1,16 +0,0 @@
{
spacename = "fabaccess.sample.space",
instanceurl = "https://fabaccess.sample.space",
listens = [{address = "127.0.0.1"}],
certfile = "/etc/bffh/certs/bffh.crt",
keyfile = "/etc/bffh/certs/bffh.key",
mqtt_url = "mqtt://127.0.0.1:1883",
db_path = "/var/lib/bffh/bffh.db",
auditlog_path = "/var/log/bffh/audit.json",
roles = {=},
machines = {=},
actors = {=},
actor_connections = [] : List { machine : Text, initiator : Text },
initiators = {=},
init_connections = [] : List { machine : Text, initiator : Text }
}