How to disable Plesk 12 micro updates installation in the template

Created:

2016-11-16 13:17:01 UTC

Modified:

2017-08-08 13:38:26 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to disable Plesk 12 micro updates installation in the template

Applicable to:

  • Plesk 12.0 for Windows
  • Plesk 12.0 for Linux

Symptoms

In case, if you are using some provisioning script to automate Plesk 12 deploying,it is impossible to install the Plesk license immediately after Plesk template is installed .The script will result in container is locked message on license installation step.

Cause

By default, Plesk 12 template installer initiates micro updates installation right after setup is completed.

Resolution

This behavior can be configured in the template post-install file.

Linux

For example, commenting out of the following lines will prevent the installer to initiate micro updates installation:

# diff /vz/template/centos/6/x86_64/config/app/pp12/default/post-install /vz/template/centos/6/x86_64/config/app/pp12/default/post-install.orig
9,14c9,14
< #if [ -f /var/lock/parallels-panel-apply-microupdates.flag ]; then
< # ai_bin="/usr/local/psa/admin/sbin/autoinstaller"
< # if [ -x "$ai_bin" ]; then
< # $ai_bin --select-product-id plesk --select-release-current --reinstall-patch --install-component base --separate-logs 2>/dev/null 1>/dev/null
< # fi
< #fi
---
> if [ -f /var/lock/parallels-panel-apply-microupdates.flag ]; then
> ai_bin="/usr/local/psa/admin/sbin/autoinstaller"
> if [ -x "$ai_bin" ]; then
> $ai_bin --select-product-id plesk --select-release-current --reinstall-patch --install-component base --separate-logs 2>/dev/null 1>/dev/null
> fi
> fi

Windows

The following part of install.vbs is initiating the micro updates vz\Templates\PANEL-12.0.18.0-20140513.15\upgrade\install.vbs

 ' Launch updates and microupdates installation from public server
ReDim cmds(0)
cmds(0) = "vzctl exec2 --skiplock " & veid & " """ & pathInsideVPSToDistribFiles & "\\ai.exe"" --reinstall-patch --debug --upgrade-installed-components --select-product-id panel --select-release-id " & UPGRADE_CURRENT_RELEASE_ID & " --ignore-key-errors"
PrivateInstall = StartCommand(cmds(0))
If PrivateInstall <> EXIT_SUCCESS Then
LogError("Unable to up-to-date Parallels Panel product.")
End If

All these lines should be commented out or deleted from install.vbs (do not forget to make a copy of the file before making any changes).

Have more questions? Submit a request
Please sign in to leave a comment.