# Morpheus UI war files

## About this task

Pre-release or patched versions of the HPE Morpheus Enterprise UI are sometimes provided. To deploy the ui war on a HPE Morpheus Enterprise Appliance:

## Procedure

1. Download the war file to the target appliance 

   ```
   ```
   wget https://url/war_file
   ```
   ```

   NOTE

   If the war file is provided via a droplr link, ensure a `+` is added to end of droplr url or the file will not download
2. Backup current war file 

   ```
   ```
   sudo mv /opt/morpheus/lib/morpheus/morpheus-ui.war /opt/morpheus/lib/morpheus/morpheus-ui.bak.`date +"%m-%d-%Y"`
   ```
   ```
3. Move and rename new war file 

   ```
   ```
   sudo mv <file> /opt/morpheus/lib/morpheus/morpheus-ui.war
   ```
   ```
4. Ensure war is owned by `morpheus-app` 

   ```
   ```
   sudo chown morpheus-app:morpheus-app /opt/morpheus/lib/morpheus/morpheus-ui.war
   ```
   ```
5. Restart the HPE Morpheus Enterprise UI 

   ```
   ```
   sudo morpheus-ctl restart morpheus-ui
   ```
   ```

## Results

The new ui war will load on startup!
