added template trigger for nginx templates

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

View File

@@ -86,6 +86,11 @@ if [ "$SSL" = 'yes' ]; then
fi
fi
# Running template trigger
if [ -x $WEBTPL/$PROXY_SYSTEM/$template.sh ]; then
$WEBTPL/$PROXY_SYSTEM/$template.sh $user $domain $ip $HOMEDIR $docroot
fi
#----------------------------------------------------------#
# Vesta #

View File

@@ -75,6 +75,11 @@ if [ "$SSL" = 'yes' ]; then
chmod 640 $conf
fi
# Running template trigger
if [ -x $WEBTPL/$PROXY_SYSTEM/$template.sh ]; then
$WEBTPL/$PROXY_SYSTEM/$template.sh $user $domain $ip $HOMEDIR $docroot
fi
#----------------------------------------------------------#
# Vesta #

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