mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
default backend
This commit is contained in:
parent
b560c99ceb
commit
45fd7dc75b
4 changed files with 6 additions and 3 deletions
|
@ -75,6 +75,9 @@ if [ ! -z "$WEB_BACKEND" ]; then
|
|||
fi
|
||||
get_domain_backend_values
|
||||
backend=$(get_user_value '$BACKEND_TEMPLATE')
|
||||
if [ -z "$backend" ]; then
|
||||
backend='default'
|
||||
fi
|
||||
fi
|
||||
|
||||
# Defining variables for add_config function
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
user=$1
|
||||
domain=$2
|
||||
domain_idn=$(idn -t --quiet -a "$domain")
|
||||
template=$3
|
||||
template=${3-default}
|
||||
|
||||
# Includes
|
||||
source $VESTA/func/main.sh
|
||||
|
|
|
@ -341,7 +341,7 @@ search_objects() {
|
|||
|
||||
# Get user value
|
||||
get_user_value() {
|
||||
grep "^${1//$/}=" $USER_DATA/user.conf| cut -f 2 -d \'
|
||||
grep "^${1//$/}=" $USER_DATA/user.conf |awk -F "'" '{print $2}'
|
||||
}
|
||||
|
||||
# Update user value in user.conf
|
||||
|
|
|
@ -26,7 +26,7 @@ if (!empty($_POST['ok'])) {
|
|||
// Check empty fields
|
||||
if (empty($_POST['v_action'])) $errors[] = __('action');
|
||||
if (empty($_POST['v_protocol'])) $errors[] = __('protocol');
|
||||
if (empty($_POST['v_port'])) $errors[] = __('port');
|
||||
if (!isset($_POST['v_port'])) $errors[] = __('port');
|
||||
if (empty($_POST['v_ip'])) $errors[] = __('ip address');
|
||||
if (!empty($errors[0])) {
|
||||
foreach ($errors as $i => $error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue