Added passeneg manager. Part 5

This commit is contained in:
Alexey Berezhok
2024-12-17 23:47:00 +03:00
parent d3f7451c9b
commit c572522f43
6 changed files with 113 additions and 4 deletions

View File

@@ -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