added template trigger for nginx templates

This commit is contained in:
Serghey Rodin 2013-06-10 10:59:35 +03:00
commit ca85e44d2a
3 changed files with 15 additions and 0 deletions

View file

@ -303,6 +303,11 @@ rebuild_web_domain_conf() {
fi
user_domains=$((user_domains + 1))
# Running template trigger
if [ -x $WEBTPL/$PROXY_SYSTEM/$PROXY.sh ]; then
$WEBTPL/$PROXY_SYSTEM/$PROXY.sh $user $domain $ip $HOMEDIR $docroot
fi
# Checking ftp
if [ ! -z "$FTP_USER" ]; then
if [ -z "$(grep ^$FTP_USER: /etc/passwd)" ]; then