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

@ -86,6 +86,11 @@ if [ "$SSL" = 'yes' ]; then
fi fi
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 # # Vesta #

View file

@ -75,6 +75,11 @@ if [ "$SSL" = 'yes' ]; then
chmod 640 $conf chmod 640 $conf
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 # # Vesta #

View file

@ -303,6 +303,11 @@ rebuild_web_domain_conf() {
fi fi
user_domains=$((user_domains + 1)) 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 # Checking ftp
if [ ! -z "$FTP_USER" ]; then if [ ! -z "$FTP_USER" ]; then
if [ -z "$(grep ^$FTP_USER: /etc/passwd)" ]; then if [ -z "$(grep ^$FTP_USER: /etc/passwd)" ]; then