From 5b64f1f7cbc2ec5ea19cd6e597e27368b3255654 Mon Sep 17 00:00:00 2001 From: Rigo Date: Tue, 31 May 2022 09:16:14 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Esrc/open3a/install-service.sh=E2=80=9C?= =?UTF-8?q?=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add "get real IP" hostname - add MySQL first Initiation of Open3A --- src/open3a/install-service.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/open3a/install-service.sh b/src/open3a/install-service.sh index cae28e0..399b001 100644 --- a/src/open3a/install-service.sh +++ b/src/open3a/install-service.sh @@ -8,7 +8,7 @@ source /root/functions.sh source /root/zamba.conf source /root/constants-service.conf - +LXC_IP=$(hostname -I) webroot=/var/www/html MYSQL_PASSWORD="$(random_password)" @@ -70,4 +70,12 @@ chmod +x /etc/cron.daily/open3a-backup systemctl enable --now php7.4-fpm systemctl restart php7.4-fpm nginx +cat << EOF >/var/www/html/system/DBData/Installation.pfdb.php + +EOF + echo -e "Your open3a installation is now complete. Please continue with setup in your Browser:\nURL:\t\thttp://$(echo $LXC_IP | cut -d'/' -f1)\nLogin:\t\tAdmin\nPassword:\tAdmin\n\nMysql-Settings:\nServer:\t\tlocalhost\nUser:\t\topen3a\nPassword:\t$MYSQL_PASSWORD\nDatabase:\topen3a"