Permalink
Browse files

added template trigger for nginx templates

  • Loading branch information...
serghey-rodin committed Jun 10, 2013
1 parent f1c5450 commit ca85e44d2a94d419ccbab80f222ff2ea17896b19
Showing with 15 additions and 0 deletions.
  1. +5 −0 bin/v-add-web-domain-proxy
  2. +5 −0 bin/v-change-web-domain-proxy-tpl
  3. +5 −0 func/rebuild.sh
@@ -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 #
@@ -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 #
@@ -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

0 comments on commit ca85e44

Please sign in to comment.