mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2025-04-20 11:16:26 +02:00
some corrections to postinst
This commit is contained in:
parent
db8ea819cb
commit
abf8999ea9
18
debian/fabaccess-bffh-src/debian/postinst
vendored
18
debian/fabaccess-bffh-src/debian/postinst
vendored
@ -43,10 +43,12 @@ echo -e "\n"
|
|||||||
echo -e " \e[33m🎆\e[0m FabAccess Difluoroborane Server (bffh) was installed/updated. Congratulations!\n"
|
echo -e " \e[33m🎆\e[0m FabAccess Difluoroborane Server (bffh) was installed/updated. Congratulations!\n"
|
||||||
echo -e " \e[33m⚠️ PLEASE CONSIDER:\e[0m"
|
echo -e " \e[33m⚠️ PLEASE CONSIDER:\e[0m"
|
||||||
echo -e " - if not already changed by you, this is the minimum working localhost listening"
|
echo -e " - if not already changed by you, this is the minimum working localhost listening"
|
||||||
echo -e " setup WITHOUT any users, roles, ressources, actors, actor_connections"
|
echo -e " setup WITHOUT any users, roles, ressources, actors, actor_connections, initiators, init_connections"
|
||||||
echo -e " - if not done yet: please update the self-signed TLS certificate to a proper one to go for production"
|
echo -e " - if not done yet: please update the self-signed TLS certificate to a proper one to go for production"
|
||||||
echo -e " - remember to configure and run a well-defined Mosquitto MQTT server"
|
echo -e " - remember to configure and run a well-defined Mosquitto MQTT server, as \e[31mit is required\e[0m"
|
||||||
echo -e " - please check the CHANGELOG for latest modifications to the server at \e[36mhttps://y.fab-access.org/changelog-bffh\e[0m"
|
echo -e " - please check the CHANGELOG for latest modifications to the server"
|
||||||
|
echo -e " - at \e[36mhttps://y.fab-access.org/changelog-bffh\e[0m,"
|
||||||
|
echo -e " - or locally by '\e[33m"$PACKMAN" changelog fabaccess-bffh\e[0m'"
|
||||||
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"
|
||||||
|
|
||||||
@ -103,17 +105,17 @@ if command -v systemctl >/dev/null; then
|
|||||||
echo -e " - systemctl: restarting bffh.service ...\n"
|
echo -e " - systemctl: restarting bffh.service ...\n"
|
||||||
systemctl restart bffh.service
|
systemctl restart bffh.service
|
||||||
else
|
else
|
||||||
echo -e " - systemctl: bffh.service did not run before installation."
|
echo -e " - systemctl: bffh.service did not run before installation/upgrade."
|
||||||
echo -e " Please start it manually by '\e[33msystemctl start bffh.service && journalctl -f -u bffh.service\e[0m'\n"
|
echo -e " Please start it manually by '\e[33msystemctl start bffh.service && journalctl -f -u bffh.service\e[0m'\n"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e " - Last hint: don't forget to import a proper users.toml into the database"
|
echo -e " - Last hint: don't forget to import a proper \e[34musers.toml\e[0m into the database"
|
||||||
echo -e " (should fit to your main configuration bffh.dhall as well)."
|
echo -e " (should fit to your main configuration \e[34mbffh.dhall\e[0m as well)."
|
||||||
echo -e " You can import an example (let's use 'showcase') users database with"
|
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 " 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 " Then you should overwrite \e[34m/etc/bffh/bffh.dhall\e[0m with the one from"
|
||||||
echo -e " /etc/bffh/config_examples/showcase/bffh.dhall and restart the bffh.service"
|
echo -e " \e[34m/etc/bffh/config_examples/showcase/bffh.dhall\e[0m and restart the bffh.service"
|
||||||
if command -v dhall 2>&1 >/dev/null; then
|
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"
|
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
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user