<aside> 📎 Install Essential AM back-end and webapps

</aside>

Install the back-end

sudo java -jar $(cat ./WIDGETS_VERSION.ENV) -mode=silent EssentialProjectEAM_LinuxCLI-master/auto-install.xml

sudo cp -r EssentialProjectEAM_LinuxCLI-master/server /opt/essentialAM/server
 
sudo mkdir /opt/essentialAM/repo 
 
sudo unzip -qq $(cat ./MODEL_VERSION.ENV) -d /opt/essentialAM/repo

sudo chgrp -R protegeusers /opt/essentialAM/
sudo chmod -R g+w /opt/essentialAM/

Install the webapps

Deploy 3 instances of the viewer webapp and one version of the import utility webapp

sudo cp EssentialProjectEAM_LinuxCLI-master/context.xml /opt/tomcat/webapps/manager/META-INF/
 
sudo cp $(cat ./VIEWER_VERSION.ENV) /opt/tomcat/webapps/essential.war
sudo cp $(cat ./VIEWER_VERSION.ENV) /opt/tomcat/webapps/essential-dev.war
sudo cp $(cat ./VIEWER_VERSION.ENV) /opt/tomcat/webapps/essential-test.war
 
sudo cp $(cat ./IMPORT_VERSION.ENV) /opt/tomcat/webapps/essential-import.war

Start or restart Tomcat. This should result in the deployment of the 3+1 java war files, if it hasn't already happened automatically after copying the four files to /opt/tomcat/webapps

sudo systemctl restart tomcat

Change the default logon credentials for the Essential import utility web app by changing the following values in /opt/tomcat/webapps/essential_importutility/config/essential_import_users.xml

<Firstname>The</Firstname><Surname>Administrator</Surname><Email>admin@admin.com</Email><Password>admin</Password><Role>Administrator</Role>

Now test