diff --git a/bin/installapp b/bin/installapp old mode 100755 new mode 100644 index 99f5cd6..58bc325 --- a/bin/installapp +++ b/bin/installapp @@ -1,4 +1,4 @@ -#!/bin/bash -x +#!/bin/bash # # Installs app if not already installed . /etc/federated @@ -8,21 +8,36 @@ trap cleanup `seq 1 15` usage() { cat << EOF Install application -Usage: $0 appname +Usage: $0 [-n] appname Arguments: appname Application to install. bookstack,espocrm,freescout,etc +Options + -n Don't send the customer e-mail on install + EOF exit 2; } -[ $# != 1 ] && usage -APP=$1 +while getopts "n" OPTION; do + case $OPTION in + n) + NO_EMAIL="true"; + ;; + *) + usage; + exit 2; + esac +done + +[ $# -gt 2 ] || [ $# -lt 1 ] && usage +[[ "$2" = "-n" ]] && usage +[[ ! "$NO_EMAIL" ]] && APP=$1 || APP=$2 [ ! -f /federated/lib/$APP.sh ] && failcheck "/federated/lib/$APP.sh doesn't exist." [ -d /federated/apps/$APP ] && failcheck "/federated/apps/$APP already exists. $APP is installed?" . /federated/lib/$APP.sh config_$APP start_$APP -# Only send email if email function exists -[[ $(type -t email_$APP) == function ]] && email_$APP +# Only send email if email function exists and NO_EMAIL isn't set +[[ ! "$NO_EMAIL" ]] && [[ $(type -t email_$APP) == function ]] && email_$APP diff --git a/lib/roundcube.sh b/lib/roundcube.sh index cb0649f..bb7a727 100644 --- a/lib/roundcube.sh +++ b/lib/roundcube.sh @@ -26,6 +26,7 @@ services: ipv4_address: 172.99.0.47 extra_hosts: - "authelia.$DOMAIN:$EXTERNALIP" + - "mail.$DOMAIN:$EXTERNALIP" env_file: - ./.env volumes: @@ -89,63 +90,19 @@ cat > /federated/apps/mail/data/root/certs/mailfile <

Roundcube is now installed on $DOMAIN

-Here is your applications chart on how to access this service:
+Dear Customer,
+
+We'd like to introduce you to "Roundcube", a free and open source webmail solution with a desktop-like user interface. You can find "Roundcube" at https://roundcube.$DOMAIN +and also on your Dashboard https://dashboard.$DOMAIN as a new application. +
+
+This is only one of a number of big changes you'll be seeing from Federated Computer in the coming months to improve and enhance your Federated Core. Thank you for being a customer! +
+
+Best, +
+Federated Computer

-

Applications

- - -------- - - - - - - - - - - - - - - - - - - - - -
ServiceLinkUser / PassAccessDocsDescription
Roundcubewebmail.$DOMAINadmin@$DOMAIN
Panel password
User access using your panel user email and passwordClick hereRoundcube is a web-based IMAP email client
-

Thanks for your support!

-

-Thank you for your support of Federated Computer. We really appreciate it and hope you have a very successful -time with Federated Core. -

-Again, if we can be of any assistance, please don't hesitate to get in touch. -

-Support: https://support.federated.computer
-Phone: (970) 722-8715
-Email: support@federated.computer
-

-It's your computer. Let's make it work for you! EOF