mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
added template trigger for nginx templates
This commit is contained in:
parent
f1c54509f7
commit
ca85e44d2a
3 changed files with 15 additions and 0 deletions
|
@ -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 #
|
||||||
|
|
|
@ -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 #
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue