Installation Script Examples (Linux)

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

Implementation and Execution Notes
Example

This script performs a typical installation of the latest Plesk version on the specified servers.

#!/bin/sh

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

for current_server in $SERVERS_LIST; do
ssh -f root@$current_server 'wget http://installer.plesk.com/plesk-installer -O - | sh /dev/stdin --source http://installer.plesk.com/ --target /tmp/plesk-installation --select-product-id plesk --select-release-latest --installation-type "Typical" --notify-email admin@example.com'
done