#!/bin/bash # # EspoCRM Service PATH=$HOME/.docker/cli-plugins:/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin config_espocrm() { echo -ne "\n* Configuring espocrm container.." spin & SPINPID=$! if [ ! -d "/federated/apps/espocrm" ]; then mkdir -p /federated/apps/espocrm/data/var/www/html fi cat > /federated/apps/espocrm/docker-compose.yml < /federated/apps/espocrm/.env < /dev/null echo -ne "done.\n" } start_espocrm() { # Start service with command to make sure it's up before proceeding start_service "espocrm" "nc -z 172.99.0.39 80 &> /dev/null" "7" docker exec pdns pdnsutil add-record $DOMAIN espocrm A 86400 $EXTERNALIP &> /dev/null [ $? -ne 0 ] && fail "Couldn't add dns record for espocrm" kill -9 $SPINPID &> /dev/null echo -ne "done.\n" } email_espocrm() { echo -ne "* Sending email to customer.." spin & SPINPID=$! cat > /federated/apps/mail/data/root/certs/mailfile <

EspoCRM is now installed on $DOMAIN

Here is your applications chart on how to access this service:

Applications

Service Link User / Pass Access Docs Description
EspoCRM espocrm.$DOMAIN admin@$DOMAIN
your admin password
All users in panel can access EspoCRM using user@$DOMAIN Click here EspoCRM is an Open Source CRM (Customer Relationship Management) software that allows you to see, enter and evaluate all your company relationships

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 # Send out e-mail from mail container with details docker exec mail bash -c "mail -r admin@$DOMAIN -a \"Content-type: text/html\" -s \"Application installed on $DOMAIN\" $EMAIL < /root/certs/mailfile" rm /federated/apps/mail/data/root/certs/mailfile kill -9 $SPINPID &> /dev/null echo -ne "done.\n" }