Making sure domain_idn is always set

This commit is contained in:
dpeca 2017-03-05 23:34:07 +01:00
parent 8ae70316e9
commit 6d88ca31c3
74 changed files with 142 additions and 1 deletions

View file

@ -15,6 +15,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
record=$(idn -t --quiet -u "$3" )
record=$(echo "$record" | tr '[:upper:]' '[:lower:]')
rtype=$(echo "$4"| tr '[:lower:]' '[:upper:]')
@ -53,6 +54,7 @@ fi
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
malias=$4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
autoreply=$4
@ -30,6 +31,7 @@ fi
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
forward=$4

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
# Includes
@ -29,6 +30,7 @@ fi
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
antispam=${3-yes}
antivirus=${4-yes}
dkim=${5-yes}

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
email="$3"
# Includes

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
dkim_size=${3-1024}
# Includes
@ -29,6 +30,7 @@ fi
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -13,6 +13,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
aliases=$3
restart="$4"
@ -25,6 +26,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
format_aliases

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
ftp_user=${1}_${3}
password=$4; HIDE=4
ftp_path=$5
@ -24,6 +25,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -16,6 +16,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
type=$3
# Includes

View file

@ -137,6 +137,7 @@ if [ ! -z "$WEB_SYSTEM" ] && [ "$WEB" != '*' ]; then
mkdir -p $tmpdir/web/$domain/vesta
# Get domain variables
domain_idn=$domain
format_domain_idn
get_domain_values 'web'
@ -286,6 +287,7 @@ if [ ! -z "$MAIL_SYSTEM" ] && [ "$MAIL" != '*' ]; then
echo -e "$(date "+%F %T") $domain" |tee -a $BACKUP/$user.log
mkdir -p $tmpdir/mail/$domain/conf
mkdir -p $tmpdir/mail/$domain/vesta
domain_idn=$domain
format_domain_idn
# Backup exim config

View file

@ -13,6 +13,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
exp=$3
# Includes
@ -22,6 +23,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,7 +12,8 @@
# Argument definition
user=$1
domain=$2
ip=$3
domain_idn=$2
p=$3
restart=$4
# Includes
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -13,6 +13,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
soa=$(echo $3 | sed -e 's/\.*$//g' -e 's/^\.*//g')
restart=$4
@ -24,6 +25,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -14,6 +14,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
template=$3
restart=$4

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
ttl=$3
restart=$4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
id=$3
dvalue=$(idn -t --quiet -u "$4" )
priority=$5
@ -25,6 +26,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
id=$3
newid=$4
restart=$5
@ -24,6 +25,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
password=$4; HIDE=4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
quota=$4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
email=$3
# Includes

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
template=$3
restart=$4

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
ftp_user=$3
password=$4; HIDE=4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
ftp_user=$3
ftp_path=$4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
ip=$3
restart=$4
@ -24,6 +25,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument defenition
user=$1
domain=$2
domain_idn=$2
new_domain=$3
restart=$4
@ -24,6 +25,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
template=$3
default_extentions="jpg,jpeg,gif,png,ico,svg,css,zip,tgz,gz,rar,bz2,doc,xls,\
exe,pdf,ppt,txt,odt,ods,odp,odf,tar,wav,bmp,rtf,js,mp3,avi,mpeg,flv,html,htm"
@ -27,6 +28,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -13,6 +13,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
ssl_dir=$3
restart=$4
@ -24,6 +25,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -8,6 +8,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
ssl_home=$3
restart=$4
@ -19,6 +20,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -13,6 +13,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
type=$3
# Includes

View file

@ -13,6 +13,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
template=$3
restart=$4
@ -25,6 +26,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
dom_alias=$(idn -t --quiet -u "$3" )
dom_alias=$(echo $dom_alias |sed -e 's/\.*$//g' -e 's/^\.*//g')
dom_alias=$(echo $dom_alias |tr '[:upper:]' '[:lower:]')
@ -26,6 +27,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
id=$3
restart=$4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
# Includes

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
malias=$4

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
malias=$4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
forward=$4

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
# Includes
@ -22,6 +23,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -13,6 +13,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh

View file

@ -15,6 +15,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
restart=$3
# Includes
@ -26,6 +27,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
ftp_user=$3
# Includes
@ -22,6 +23,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
restart=$3
# Includes
@ -22,6 +23,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
restart=$3
# Includes
@ -22,6 +23,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -13,6 +13,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
key=$(echo "$3"| tr '[:lower:]' '[:upper:]' | sed "s/^/$/")
# Includes
@ -20,6 +21,7 @@ source $VESTA/func/main.sh
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
key=$(echo "$4"| tr '[:lower:]' '[:upper:]' | sed "s/^/$/")
@ -21,6 +22,7 @@ source $VESTA/func/main.sh
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
key=$(echo "$3"| tr '[:lower:]' '[:upper:]' | sed "s/^/$/")
# Includes
@ -20,6 +21,7 @@ source $VESTA/func/main.sh
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
restart="$3"
# Includes
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
id=$3
restart=$4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
# Includes
@ -22,6 +23,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -19,6 +20,8 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -14,6 +14,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
restart=$3
# Includes
@ -25,6 +26,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -20,6 +21,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
id=$3
restart=$4
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
account=$3
# Includes
@ -22,6 +23,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -20,6 +21,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
restart=$3
# Includes
@ -23,6 +24,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -20,6 +21,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -15,6 +15,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
ssl_dir=$3
restart=$4
@ -27,6 +28,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh

View file

@ -12,6 +12,7 @@
# Argument definition
user=$1
domain=$2
domain_idn=$2
# Includes
source $VESTA/func/main.sh
@ -21,6 +22,7 @@ source $VESTA/conf/vesta.conf
# Additional argument formatting
format_domain
format_domain_idn
# TODO: $domain_idn not used in this script - maybe $domain should be converted to $doman_idn ?
#----------------------------------------------------------#

View file

@ -172,6 +172,10 @@ add_web_config() {
conf="$HOMEDIR/$user/conf/web/s$1.conf"
fi
if [ -z "$domain_idn" ]; then
format_domain_idn
fi
cat $WEBTPL/$1/$WEB_BACKEND/$2 | \
sed -e "s|%ip%|$local_ip|g" \
-e "s|%domain%|$domain|g" \
@ -228,6 +232,9 @@ get_web_config_lines() {
check_result $E_PARSING "can't parse template $1"
fi
if [ -z "$domain_idn" ]; then
format_domain_idn
fi
vhost_lines=$(grep -niF "name $domain_idn" $2)
vhost_lines=$(echo "$vhost_lines" |egrep "$domain_idn($| |;)") #"
vhost_lines=$(echo "$vhost_lines" |cut -f 1 -d :)

View file

@ -864,6 +864,9 @@ format_domain() {
}
format_domain_idn() {
if [ -z "$domain_idn" ]; then
domain_idn=$domain
fi
if [[ "$domain_idn" = *[![:ascii:]]* ]]; then
domain_idn=$(idn -t --quiet -a $domain_idn)
fi

View file

@ -227,6 +227,9 @@ rebuild_web_domain_conf() {
# Adding web stats parser
if [ ! -z "$STATS" ]; then
if [ -z "$domain_idn" ]; then
format_domain_idn
fi
cat $WEBTPL/$STATS/$STATS.tpl |\
sed -e "s|%ip%|$local_ip|g" \
-e "s|%web_system%|$WEB_SYSTEM|g" \