# PAM Jump Server Upgrade

## Upgrade 

To upgrade PAM you will need to run two scripts, one for the store and the other for the launcher.

### Upgrade store

To upgrade the storage container you can download and execute the following script: [upgrade-store.sh](https://bookstack.soffid.com/attachments/57)

```
~/Downloads$ bash ./upgrade-store.sh
```

##### A brief description of the script

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">1. </span>Gets the latest version of the PAM store.

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">2. </span>Stops the store container.

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">3. </span>Removes the store container.

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">4. </span>Creates a new store container.

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">5. </span>Starts a new store container.

### Upgrade launcher

To upgrade the launcher container you can download and execute the following script: [upgrade-launcher.sh](https://bookstack.soffid.com/attachments/59)

```
~/Downloads$ bash ./upgrade-launcher.sh
```

##### A brief description of the script

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">1. </span>Gets the latest version of the PAM launcher.

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">2. </span>Gets environment variables of current docker to create the new docker with the same configuration

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">3. </span>Stops the launcher container.

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">4. </span>Removes the launcher container.

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">5. </span>Creates a new launcher container.

<span style="color: #a6d100; font-weight: bold; font-size: 18px;">6. </span>Starts a new launcher container.

---

*(\*) [https://en.wikipedia.org/wiki/Jump\_server](https://en.wikipedia.org/wiki/Jump_server)*