vz-postinst − Container’s script to perform postinstall tasks
/etc/sysconfig/vz-scripts/vz-postinst
The vz-postinst script is called by vzctl(8) after CT private area is created and mounted.
This script performs various postinstall tasks.
It randomizes times in VE_ROOT/etc/crontab file to prevent starting cron jobs in all VEs in the same time.
It also disables root password if the password field is empty in VE_ROOT/etc/passwd file.
Parameters are passed to the script in the form of environment variables. The following variables can be defined:
VE_ROOT |
Root directory of CT. | ||
DIST |
Name of the distribution this CT runs (like redhat-7.1). Used for script to do distribution-dependent setup. |
The script is expected to return 0 on success, any other return code will be printed by vzctl.
vzctl(8).
Copyright (c) 1999-2015 Parallels IP Holdings GmbH. All rights reserved.