インストールスクリプトの例(Linux)

このセクションでは、インストールスクリプトの導入と実行について説明し、インストールスクリプトのサンプルを紹介します。

導入と実行に関する注意点

このスクリプトは、指定したサーバに最新の Plesk バージョンを標準インストールします。

#!/bin/sh

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

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