Added passeneg manager. Part 5
This commit is contained in:
@@ -289,6 +289,22 @@ add_web_config() {
|
||||
domain_idn=$domain
|
||||
format_domain_idn
|
||||
|
||||
PASS_TPL=""
|
||||
#Passenger generator
|
||||
if [ -e /usr/local/hestia/bin/v-ext-modules ]; then
|
||||
res=$(/usr/local/hestia/bin/v-ext-modules state passenger_manager | tail -n 1)
|
||||
if [ -n "$res" ]; then
|
||||
enabled=$(echo "$res" | grep enabled)
|
||||
if [ -n "$enabled" ]; then
|
||||
ruby_res=$(/usr/local/hestia/bin/v-ext-modules-run passenger_manager get_user_ruby "$domain" | tail -n1)
|
||||
if [ -n "$ruby_res" ]; then
|
||||
:
|
||||
#TODO
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
WEBTPL_LOCATION="$WEBTPL/$1"
|
||||
if [ "$1" != "$PROXY_SYSTEM" ] && [ -n "$WEB_BACKEND" ] && [ -d "$WEBTPL_LOCATION/$WEB_BACKEND" ]; then
|
||||
if [ -f "$WEBTPL_LOCATION/$WEB_BACKEND/$2" ]; then
|
||||
|
||||
Reference in New Issue
Block a user