From befc08fd4c330750c522d87f2daa1d6ce8e3166f Mon Sep 17 00:00:00 2001 From: thorstenspille Date: Sat, 11 Feb 2023 16:21:20 +0100 Subject: [PATCH] bookstack: fix ip output in finished message --- src/bookstack/install-service.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bookstack/install-service.sh b/src/bookstack/install-service.sh index f18802e..1ac181a 100644 --- a/src/bookstack/install-service.sh +++ b/src/bookstack/install-service.sh @@ -181,4 +181,6 @@ systemctl daemon-reload systemctl enable --now bookstack-queue php7.4-fpm nginx redis-server systemctl restart php7.4-fpm nginx bookstack-queue redis-server -echo -e "Your bookstack installation is now complete. Please continue with setup in your Browser:\nLogin:\t\tadmin@admin.com\nPassword:\tpassword\n\n" \ No newline at end of file +LXC_IP=$(ip address show dev eth0 | grep "inet " | cut -d ' ' -f6) + +echo -e "Your bookstack installation is now complete. Please continue with setup in your Browser:\nURL:\t\thttp://$(echo ${LXC_IP} | cut -d'/' -f1)\nLogin:\t\tadmin@admin.com\nPassword:\tpassword\n\n" \ No newline at end of file