You cannot run this script as the
/scripts/process_site_templates script processes template files and user-provided data to create a Site Publisher website.
When users publish a Site Publisher website, the script performs the following actions:
The script saves a copy of the target directory's current contents as a tarball in the
/home/user/site_publisher/backups/ directory, where
user represents the account's username.
If the system encounters a file system or file quota error during this step, it will not save the tarball and will not publish the new Site Publisher website.
The script generates and saves the new Site Publisher website's files.
To run the
/scripts/process_site_templates script on the command line, use the following format:
You can use the following options with the
Define a template variable and its desired value. Each template variable requires a separate
|Display a help message.|
Define the absolute path to the template's source location.
|Define the absolute path to the directory to which you wish to publish the Site Publisher website. Generally, you should specify the target domain's home directory path.|
For example, to use the
/scripts/process_site_templates script, you could run the following command:
/scripts/process_site_templates --source=/var/cpanel/customizations/site_templates/my_template --target=/home/username/public_html/example.com --define business_name="National Emotion, Inc." --define phone="867-5309" --define contact="email@example.com"
This example uses the
my_template template to publish a website for the
username cPanel user's
example.com domain, and defines values for three parameters that the
my_template template uses.