From aa0da22614bf6ce39cd41c4d3128ababd2a8780f Mon Sep 17 00:00:00 2001 From: David Duque Date: Tue, 30 Mar 2021 01:26:23 +0100 Subject: [PATCH] Add a nice welcome page --- conf/www_default.html | 94 ++++++++++++++++++++++++++++++++++++++++--- setup/web.sh | 2 +- 2 files changed, 89 insertions(+), 7 deletions(-) diff --git a/conf/www_default.html b/conf/www_default.html index e78b0bb..29ec932 100644 --- a/conf/www_default.html +++ b/conf/www_default.html @@ -1,15 +1,97 @@ - Redirecting... - + Power Mail-in-a-Box + + +
+

It's working! 🎉🎉🎉

+

It is running! Now you can begin your very awesome thing!

+ +

What is this Power Mail-in-a-Box able to do for you?

+ + +

Let's begin, then?

+

This Power Mail-in-a-Box was configured with the name {{PRIMARY_HOSTNAME}}.

+ + + + + + + + + + + + + + + + + + +
To access the admin panel...To access the webmail...To access NextCloud...
Go hereGo hereGo here
{{PRIMARY_HOSTNAME}}/admin{{PRIMARY_HOSTNAME}}/mail{{PRIMARY_HOSTNAME}}/cloud
+ +

+ +

Oh and by the way: thank you for sticking by!

+

This project is maintained on GitHub. Feel free to take a peek and maybe leave a star. It is very much appreciated! ❤

+

Also feel free to leave there any issues you may find, or your ideas.

+
+ - - diff --git a/setup/web.sh b/setup/web.sh index 9db39c1..31ca913 100755 --- a/setup/web.sh +++ b/setup/web.sh @@ -141,7 +141,7 @@ chmod a+r /var/lib/mailinabox/mta-sts.txt if [ -d $STORAGE_ROOT/www/static ]; then mv $STORAGE_ROOT/www/static $STORAGE_ROOT/www/default; fi # migration #NODOC mkdir -p $STORAGE_ROOT/www/default if [ ! -f $STORAGE_ROOT/www/default/index.html ]; then - cp conf/www_default.html $STORAGE_ROOT/www/default/index.html + sed "s/{{PRIMARY_HOSTNAME}}/$PRIMARY_HOSTNAME/" conf/www_default.html | sed "s#{{STORAGE_ROOT}}#$STORAGE_ROOT#" > $STORAGE_ROOT/www/default/index.html fi chown -R $STORAGE_USER $STORAGE_ROOT/www