Upgrade Script Examples (Linux)

This section provides notes on implementation and execution of an upgrade script, and also presents a couple of script samples.

Implementation and Executions Notes
Example

This script upgrades Plesk installed on the specified servers to the latest available version.

#!/bin/sh

SERVERS_LIST="node1.example.com node2.example.com"

for current_server in $SERVERS_LIST; do
ssh -f root@$current_server 'plesk installer --select-release-latest --upgrade-installed-components --notify-email admin@example.com'
done