fix postinst script

This commit is contained in:
Mario Voigt 2025-03-14 00:04:50 +01:00
parent b76cf48b10
commit c3237cdc62

View File

@ -114,4 +114,8 @@ echo -e " You can import an example (let's use 'showcase') users database with
echo -e " the command '\e[33m/usr/bin/bffhd --load /etc/bffh/config_examples/showcase/users.toml\e[0m'"
echo -e " Then you should overwrite /etc/bffh/bffh.dhall with the one from"
echo -e " /etc/bffh/config_examples/showcase/bffh.dhall and restart the bffh.service"
echo -e " If you messed up, you can restore your default settings from /etc/bffh/config_examples/minimum_working/\n"
if command -v dhall 2>&1 >/dev/null; then
echo -e " If you messed up, you can restore default by '\e[33m/usr/bin/bffhd --print-default | dhall format > /etc/bffh/bffh.dhall\e[0m'\n"
else
echo -e " If you messed up, you can restore default by '\e[33m/usr/bin/bffhd --print-default > /etc/bffh/bffh.dhall\e[0m'\n"
fi