Skip to content

Commit

Permalink
Update README.md, ubuntu_hermes_install.sh, hermes_migrate_1804_2004.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
deeztek committed May 20, 2023
1 parent e194da9 commit 607aa4c
Show file tree
Hide file tree
Showing 58 changed files with 34 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ It can be deployed to protect your in-house email solution as well as cloud emai
![Screenshot](2021_12_02_19_48_49.png)
## Installation

Hermes SEG can be easily installed in your existing **Ubuntu 18.04 LTS** or **Ubuntu 20.04 LTS** server machine by utilizing the **ubuntu_hermes_install.sh** script. The script requires that you have a fully updated Ubuntu server installation and that you have a /mnt/data directory for database and email archive storage. **You must have at least 8 GB of RAM and 4 CPUs**.
Hermes SEG can be easily installed in your existing **Ubuntu 20.04 LTS Server** machine by utilizing the **ubuntu_hermes_install.sh** script. The script requires that you have a fully updated Ubuntu installation and that you have a /mnt/data directory for database and email archive storage. **You must have at least 8 GB of RAM and 4 CPUs**.

**Required Information**

Expand Down
Binary file modified dirstructure/var/www/html/admin/2/add_internal_recipients.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/edit_ad_connection.cfm
Binary file not shown.
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/add_serial_number.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/check_system_update.cfm
Binary file not shown.
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/dmi_decode.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/download_csr.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/edit_console_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/edit_smtp_tls_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/edit_system_settings.cfm
Binary file not shown.
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/generate_csr.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/generate_hermes_key.cfm
Binary file not shown.
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/generate_tls_policy.cfm
Binary file not shown.
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/get_console_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/get_smtp_tls_policies.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/get_smtp_tls_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/get_system_settings.cfm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/inc/setsession.cfm
Binary file not shown.
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/index.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/view_ad_connection.cfm
Binary file not shown.
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/view_console_firewall.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/view_console_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/view_internal_recipients.cfm
Binary file not shown.
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/view_smtp_tls_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/view_system_certificates.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/view_system_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/2/view_system_updates.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/ad_integration.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/console_ssl_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/create_csr.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/dkim_configuration.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/dkim_sender_bypass.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/dkim_sign.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/dkim_trusted_hosts.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/dmarc_configuration.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/firewall_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/index.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/logout.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/new_serial.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/recipients.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/smtp_tls_policy.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/smtp_tls_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/spf_bypass.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/spf_configuration.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/system_settings.cfm
Binary file not shown.
Binary file modified dirstructure/var/www/html/admin/system_update.cfm
Binary file not shown.
23 changes: 22 additions & 1 deletion hermes_migrate_1804_2004.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ TIMESTAMP=`date +%m-%d-%Y-%H%M`
TOMCATVERSION="tomcat9"
TOMCATUSER="tomcat"

THEVERSION="20.04"
HERMES_SQL_USERNAME=`cat /opt/hermes/creds/hermes_username`
HERMES_SQL_PASSWORD=`cat /opt/hermes/creds/hermes_password`


echo "Installing Boxes Prerequisite if necessary"
#Install boxes
Expand Down Expand Up @@ -51,6 +55,14 @@ else
echo "${GREEN}Completed Installing Spinner Prerequisite ${RESET}"
fi

source "$(pwd)/spinner.sh"

# test success
start_spinner 'sleeping for 2 secs...'
sleep 2
stop_spinner $?


PS3='This script will attempt to install various packages and migrate various settings for a Hermes SEG installation that was successfully upgraded from Ubuntu 18.04 to Ubuntu 20.04 using the do-release-upgrade command. Ensure that you have a fresh and valid backup of your machine before proceeding. This script is offered with absolutely no warrranty or guarantee of any kind. We cannot be held liable for any damage that may occur to your system. Do you agree with the terms of this script?: '

options=("Yes - I agree" "No - I do not agree")
Expand Down Expand Up @@ -108,7 +120,16 @@ sleep 1

#Delete Tomcat8
rm -rf /etc/tomcat8 >> $SCRIPTPATH/migrate_log-$TIMESTAMP.log 2>&1 && \
rm -rf /etc/default/tomcat8 >> $SCRIPTPATH/migrate_log-$TIMESTAMP.log 2>&1
rm -rf /etc/default/tomcat8.ORIGINAL >> $SCRIPTPATH/migrate_log-$TIMESTAMP.log 2>&1

stop_spinner $?

start_spinner 'Updating Hermes SEG Version...'
sleep 1

#UPDATE VERSION
echo "[`date +%m/%d/%Y-%H:%M`] Updating Hermes SEG Version" >> $SCRIPTPATH/migrate_log-$TIMESTAMP.log 2>&1
mysql -h localhost -u $HERMES_SQL_USERNAME -p$HERMES_SQL_PASSWORD -e "use hermes; update system_settings set value = '$THEVERSION' where parameter = 'version_no'"

stop_spinner $?

Expand Down
21 changes: 11 additions & 10 deletions ubuntu_hermes_install.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

#The script below assumes you have a fully installed and updated Ubuntu 18.04 LTS/20.04 LTS (Recommended) server and you have created /mnt/data as outlined below.
#The script below assumes you have a fully installed and updated Ubuntu 20.04 LTS server and you have created /mnt/data as outlined below.
#The Configure /mnt/data partition directions below assumes you have a 250GB secondary drive which you will partition, format and mount as /mnt/data. Technically a secondary drive for the /mnt/data directory is not a requirement but it's highly recommended for performance reasons. If you don't wish to use a secondary drive for the /mnt/data directory, simply create a /mnt/data directory in your system and run this script.

#Configure /mnt/data partition
Expand Down Expand Up @@ -69,6 +69,13 @@ if [ ! -d "/mnt/data" ]; then
# exit 1
# fi

#Ensure Ubuntu 20.04
string=`lsb_release -d`
if [[ $string == *"Ubuntu 18.04"* ]]; then
echo "You must be running Ubuntu 20.04 LTS before attempting to install Hermes SEG, Exiting..."
exit 1
fi

#Set the script path
SCRIPTPATH=$(pwd)

Expand All @@ -86,15 +93,9 @@ RED=`tput setaf 1`
GREEN=`tput setaf 2`
RESET=`tput sgr0`

#Set Tomcat Parameters for Ubuntu Version
string=`lsb_release -d`
if [[ $string == *"Ubuntu 18.04"* ]]; then
TOMCATVERSION="tomcat8"
TOMCATUSER="tomcat8"
elif [[ $string == *"Ubuntu 20.04"* ]]; then
TOMCATVERSION="tomcat9"
TOMCATUSER="tomcat"
fi
#Set Tomcat Version
TOMCATVERSION="tomcat9"
TOMCATUSER="tomcat"


#Script Debug Set Variables. Do not enable unless you are troubleshooting
Expand Down

0 comments on commit 607aa4c

Please sign in to comment.