Question
How to set weekdays and/or time range (the start and the end hour) for the installation of automatic Plesk updates?
Answer
-
Date and time can be managed for automatic Plesk updates for:
-
Clusters of licenses. This solution is only applicable to Plesk Partners and can be done via Key Administrator Partner Central. Details can be found in Plesk Blog.
-
An individual server. Details are specified below.
-
To specify the desired weekdays and time range when Plesk auto-updates are installed, changes should be applied to the panel.ini
file.
Note: You must specify not less than two weekdays and/or hours in UTC (convert your local time to UTC).
Note: The specified time range sets the desired time interval during which the installation of updates starts but does not guarantee that the installation of updates will be finished within that interval.
Solution via Plesk interface
-
Open the Panel.ini Editor extension in Extensions > My Extensions.
Note: If the Panel.ini Editor extension is not installed, install it from the Extensions menu.
-
In Panel.ini Editor switch to the Editor tab.
-
Add pattern below at the end of the file:
[updates]
updateDays = weekday1,weekday2
timeFrameStart = hour
timeFrameEnd = hourwhere:
-
weekday1 and weekday2 are two separate weekdays.
-
hour is hour in UTC.
-
For example, if the entry below is added to the panel.ini
file:
[updates]
updateDays = saturday,sunday
timeFrameStart = 11
timeFrameEnd = 18
Plesk updates will be installed only on Saturday and Sunday between 11 and 18 hours (UTC).
Solution for a Linux server via SSH
-
Connect to the server via SSH.
-
Сheck
panel.ini
availability:# ls -l /usr/local/psa/admin/conf/panel.ini
-
If the file
/usr/local/psa/admin/conf/panel.ini
does not exist or is empty, create it by copying the sample configuration file/usr/local/psa/admin/conf/panel.ini
:# cp /usr/local/psa/admin/conf/panel.ini.sample /usr/local/psa/admin/conf/panel.ini
-
-
Open the file
/usr/local/psa/admin/conf/panel.ini
in any text editor. In this example, we are using the vi editor:# vi /usr/local/psa/admin/conf/panel.ini
-
Add pattern below at the end of the file:
[updates]
updateDays = weekday1,weekday2
timeFrameStart = hour
timeFrameEnd = hourwhere:
-
weekday1 and weekday2 are two separate weekdays.
-
hour is hour in UTC.
-
For example, if the entry below is added to the panel.ini
file:
[updates]
updateDays = saturday,sunday
timeFrameStart = 11
timeFrameEnd = 18
Plesk updates will be installed only on Saturday and Sunday between 11 and 18 hour…