#!/bin/sh
# get all the parameters passed on standard input
export `cat /dev/stdin`
# get the root domain name for which this subdomain is being added.
parent_domain=$psi_domain
subdomain=$lsd_domain
subdomain_name=$lsd_name
# now email the Server Administrator about this
appliance_admin_email=`cat /etc/appliance/appliance.ini |grep adminemail |cut -d' ' -f3`
echo 'A subdomain $subdomain is being created for $parent_domain' |mail -s 'subdomain creation'
$appliance_admin_email
The following parameters can be passed to the script on the standard input.
Parameter |
What it indicates |
---|---|
Parent Site Info |
|
psi_domain |
The name of the root domain. For example, myco.com |
psi_version |
The Parallels Pro Control Panel version on which the root domain is hosted For example, 3.7.0-13 |
psi_admin_user |
The name of the Site Administrator For example, myadmin |
psi_admin |
The Unix account information of the Site Administrator For example, admin1 |
psi_passwd1 |
The encrypted password of the Site Administrator For example, *** |
psi_email |
The email address of the Site Administrator For example, example@example.com |
psi_passwd2 |
The encrypted password of the Site Administrator For example, *** |
Parent IP Address Info |
|
pip_ipaddrs |
The IP address of the root domain For example, 1.2.3.4 |
pip_namebased |
The type of domain; indicates whether the root domain is name based. Note: The value "1" indicates a name-based domain. |
pip_version |
The version of Parallels Pro Control Panel on which the root domain is hosted. For example, 3.7.0-13 |
pip_nbaddrs |
The IP address of the root domain For example, 1.2.3.4 |
Global Subdomain Info |
|
gsd_wildcards |
A boolean value indicating whether wildcard subdomains are enabled for the root domain. Note: The default value is 0. |
gsd_max |
The maximum number of subdomains that can be created. |
gsd_version |
The Parallels Pro Control Panel version on which the subdomain is hosted |
gsd_enabled |
A Boolean value indicating whether subdomains are enabled for the root domain. Important: The value for this argument must be 1. |
gsd_base |
The base directory for subdomains created on the root domain. For example, |
Local Subdomain Info |
|
lsd_cgi |
A Boolean value indicating whether CGI service is enabled for the subdomain. |
lsd_cgi_root |
The CGI directory where CGI scripts for the subdomain are placed. For example, |
lsd_cgi_extensions |
The script extensions permissible for CGI scripts For example, |
lsd_user_subdomain |
A Boolean value indicating whether the subdomain is a user subdomain |
lsd_owner |
The owner of the subdomain For example, |
lsd_aliases |
A Boolean value indicating whether aliases are enabled for the subdomain. |
lsd_bind |
A Boolean value indicating whether the subdomain has a DNS entry. |
lsd_document_root |
The document root of the subdomain. For example, |
lsd_domain |
The host name of the subdomain. For example, |
lsd_name |
The lower-level subdomain name. For example, the subdomain name |