Merge pull request #482 from RhysIT/master

Corrected spelling mistakes
This commit is contained in:
Serghey Rodin 2015-12-11 22:00:26 +02:00
commit df0d6c12cb
335 changed files with 406 additions and 406 deletions

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
nid=$2 nid=$2

View file

@ -2,18 +2,18 @@
# info: activate vesta license # info: activate vesta license
# options: MODULE LICENSE # options: MODULE LICENSE
# #
# The function activates and register vesta license # The function activates and registers the vesta license
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
module=$(echo $1 | tr '[:lower:]' '[:upper:]') module=$(echo $1 | tr '[:lower:]' '[:upper:]')
license=$2 license=$2
# Importing system enviroment # Importing system environment
source /etc/profile source /etc/profile
# Includes # Includes

View file

@ -2,14 +2,14 @@
# info: add backup host # info: add backup host
# options: TYPE HOST USERNAME PASSWORD [PATH] [PORT] # options: TYPE HOST USERNAME PASSWORD [PATH] [PORT]
# #
# The function adds backup host # This function adds a backup host
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
type=$1 type=$1
host=$2 host=$2
user=$3 user=$3

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
min=$2 min=$2
hour=$3 hour=$3
@ -25,7 +25,7 @@ restart=$9
source $VESTA/func/main.sh source $VESTA/func/main.sh
source $VESTA/conf/vesta.conf source $VESTA/conf/vesta.conf
# Assing new value # Assigning new value
A7="$command" A7="$command"

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# info: add cron reports # info: add cron reports
# opions: user # options: user
# #
# The script for enabling reports on cron tasks and administrative # The script for enabling reports on cron tasks and administrative
# notifications. # notifications.
@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
# Includes # Includes

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# info: add cron reports # info: add cron reports
# opions: NONE # options: NONE
# #
# The script for enabling restart cron tasks # The script for enabling restart cron tasks

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=admin user=admin
# Includes # Includes
@ -34,7 +34,7 @@ fi
# Action # # Action #
#----------------------------------------------------------# #----------------------------------------------------------#
# Define time somewhere at nigth # Define time somewhere at night
min=$(gen_password '012345' '2') min=$(gen_password '012345' '2')
hour=$(gen_password '1234567' '1') hour=$(gen_password '1234567' '1')
day='*' day='*'

View file

@ -15,7 +15,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
database="$user"_"$2" database="$user"_"$2"
dbuser="$user"_"$3" dbuser="$user"_"$3"

View file

@ -13,7 +13,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
type=$1 type=$1
host=$2 host=$2
dbuser=$3 dbuser=$3
@ -76,7 +76,7 @@ esac
# Action # # Action #
#----------------------------------------------------------# #----------------------------------------------------------#
# Concatentating db host string # Concatenating db host string
case $type in case $type in
mysql) str="HOST='$host' USER='$dbuser' PASSWORD='$dbpass'"; mysql) str="HOST='$host' USER='$dbuser' PASSWORD='$dbpass'";
str="$str CHARSETS='$charsets' MAX_DB='$max_db' U_SYS_USERS=''"; str="$str CHARSETS='$charsets' MAX_DB='$max_db' U_SYS_USERS=''";

View file

@ -13,7 +13,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | sed -e 's/\.*$//g' -e 's/^\.*//g') domain=$(echo $domain | sed -e 's/\.*$//g' -e 's/^\.*//g')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
alias=$2 alias=$2
ip=$3 ip=$3
@ -54,7 +54,7 @@ if [ "$domain_lvl" -eq 1 ] || [ "${#top_domain}" -le '6' ]; then
exit exit
fi fi
# Adding toplevel domain and then its sub # Adding top-level domain and then its sub
$BIN/v-add-dns-domain $user $top_domain $ip '' '' '' '' $restart >> /dev/null $BIN/v-add-dns-domain $user $top_domain $ip '' '' '' '' $restart >> /dev/null
# Checking top-level domain # Checking top-level domain

View file

@ -12,7 +12,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')
@ -101,7 +101,7 @@ fi
# Vesta # # Vesta #
#----------------------------------------------------------# #----------------------------------------------------------#
# Upddate counters # Update counters
records="$(wc -l $USER_DATA/dns/$domain.conf | cut -f1 -d ' ')" records="$(wc -l $USER_DATA/dns/$domain.conf | cut -f1 -d ' ')"
update_object_value 'dns' 'DOMAIN' "$domain" '$RECORDS' "$records" update_object_value 'dns' 'DOMAIN' "$domain" '$RECORDS' "$records"
increase_user_value "$user" '$U_DNS_RECORDS' increase_user_value "$user" '$U_DNS_RECORDS'

View file

@ -12,7 +12,7 @@
# Importing system variables # Importing system variables
source /etc/profile source /etc/profile
# Argument defenition # Argument definition
ip=$1 ip=$1
chain=$(echo $2|tr '[:lower:]' '[:upper:]') chain=$(echo $2|tr '[:lower:]' '[:upper:]')

View file

@ -12,7 +12,7 @@
# Importing system variables # Importing system variables
source /etc/profile source /etc/profile
# Argument defenition # Argument definition
chain=$(echo $1 | tr '[:lower:]' '[:upper:]') chain=$(echo $1 | tr '[:lower:]' '[:upper:]')
port=$2 port=$2
protocol=${4-TCP} protocol=${4-TCP}

View file

@ -12,7 +12,7 @@
# Importing system variables # Importing system variables
source /etc/profile source /etc/profile
# Argument defenition # Argument definition
action=$(echo $1|tr '[:lower:]' '[:upper:]') action=$(echo $1|tr '[:lower:]' '[:upper:]')
ip=$2 ip=$2
port_ext=$3 port_ext=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | sed -e 's/\.*$//g' -e 's/^\.*//g') domain=$(echo $domain | sed -e 's/\.*$//g' -e 's/^\.*//g')

View file

@ -2,14 +2,14 @@
# info: add mail domain antispam support # info: add mail domain antispam support
# options: USER DOMAIN # options: USER DOMAIN
# #
# The function enables spamassasin for incomming emails. # The function enables spamassasin for incoming emails.
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -2,14 +2,14 @@
# info: add mail domain antivirus support # info: add mail domain antivirus support
# options: USER DOMAIN # options: USER DOMAIN
# #
# The function enables clamav scan for incomming emails. # The function enables clamav scan for incoming emails.
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -2,14 +2,14 @@
# info: add mail domain catchall account # info: add mail domain catchall account
# options: USER DOMAIN EMAIL # options: USER DOMAIN EMAIL
# #
# The function enables catchall account for incomming emails. # The function enables catchall account for incoming emails.
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$2 domain=$2
flush=$3 flush=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
host=$1 host=$1
HOST=$host HOST=$host
port=$2 port=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$2 domain=$2
id=$3 id=$3

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# info: add system firewall # info: add system firewall
# opions: NONE # options: NONE
# #
# The script enables firewall # The script enables firewall

View file

@ -5,7 +5,7 @@
# The function adds ip address into a system. It also creates rc scripts. You # The function adds ip address into a system. It also creates rc scripts. You
# can specify ip name which will be used as root domain for temporary aliases. # can specify ip name which will be used as root domain for temporary aliases.
# For example, if you set a1.myhosting.com as name, each new domain created on # For example, if you set a1.myhosting.com as name, each new domain created on
# this ip will automaticaly receive alias $domain.a1.myhosting.com. Of course # this ip will automatically receive alias $domain.a1.myhosting.com. Of course
# you must have wildcard record *.a1.myhosting.com pointed to ip. This feature # you must have wildcard record *.a1.myhosting.com pointed to ip. This feature
# is very handy when customer wants to test domain before dns migration. # is very handy when customer wants to test domain before dns migration.
@ -14,7 +14,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
ip=${1// /} ip=${1// /}
netmask=$2 netmask=$2
interface="${3-eth0}" interface="${3-eth0}"

View file

@ -2,7 +2,7 @@
# info: add system quota # info: add system quota
# options: NONE # options: NONE
# #
# The script enables filesystem quota on /home patition # The script enables filesystem quota on /home partition
#----------------------------------------------------------# #----------------------------------------------------------#

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# info: add system sftp jail # info: add system sftp jail
# opions: NONE # options: NONE
# #
# The script enables sftp jailed environment # The script enables sftp jailed environment
@ -9,8 +9,8 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Importing system enviroment as we run this script # Importing system environment as we run this script
# mostly by cron wich do not read it by itself # mostly by cron which do not read it by itself
source /etc/profile source /etc/profile
# Includes # Includes

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
password=$2; HIDE=2 password=$2; HIDE=2
email=$3 email=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
system=$(echo "$2" |tr '[:lower:]' '[:upper:]') system=$(echo "$2" |tr '[:lower:]' '[:upper:]')
object=$3 object=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
topic=$(echo $2 |sed "s/'/%quote%/g") topic=$(echo $2 |sed "s/'/%quote%/g")
notice=$(echo $3 |sed "s/'/%quote%/g") notice=$(echo $3 |sed "s/'/%quote%/g")

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
pkg_dir=$1 pkg_dir=$1
package=$2 package=$2
rewrite=$3 rewrite=$3

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
# info: add user sftp jail # info: add user sftp jail
# opions: USER # options: USER
# #
# The script enables sftp jailed environment # The script enables sftp jailed environment
@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
# Includes # Includes

View file

@ -5,7 +5,7 @@
# The function adds virtual host to a server. In cases when a template is # The function adds virtual host to a server. In cases when a template is
# undefined in the script, the template "default" will be used. The alias of # undefined in the script, the template "default" will be used. The alias of
# www.domain.tld type will be automatically assigned to the domain. If ip have # www.domain.tld type will be automatically assigned to the domain. If ip have
# assocated dns name, this domain will also get the alias domain-tpl.$ipname. # associated dns name, this domain will also get the alias domain-tpl.$ipname.
# An alias with the ip name is useful during the site testing while dns isn't # An alias with the ip name is useful during the site testing while dns isn't
# moved to a server yet. # moved to a server yet.
@ -14,7 +14,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | sed -e 's/\.*$//g' -e 's/^\.*//g') domain=$(echo $domain | sed -e 's/\.*$//g' -e 's/^\.*//g')

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$2 domain=$2
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$2 domain=$2
auth_user=$3 auth_user=$3
@ -21,7 +21,7 @@ source $VESTA/func/main.sh
source $VESTA/func/domain.sh source $VESTA/func/domain.sh
source $VESTA/conf/vesta.conf source $VESTA/conf/vesta.conf
# Definining htpasswd file # Defining htpasswd file
htaccess="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.conf_htaccess" htaccess="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.conf_htaccess"
htpasswd="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd" htpasswd="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd"
docroot="$HOMEDIR/$user/web/$domain/public_html" docroot="$HOMEDIR/$user/web/$domain/public_html"

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -14,7 +14,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -13,7 +13,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
stats_user=$3 stats_user=$3
@ -39,7 +39,7 @@ is_password_valid
# Action # # Action #
#----------------------------------------------------------# #----------------------------------------------------------#
# Definining statistic dir # Defining statistic dir
stats_dir="$HOMEDIR/$user/web/$domain/stats" stats_dir="$HOMEDIR/$user/web/$domain/stats"
# Adding htaccess file # Adding htaccess file

View file

@ -12,7 +12,7 @@
# Importing system variables # Importing system variables
source /etc/profile source /etc/profile
# Argument defenition # Argument definition
user=$1 user=$1
notify=${2-no} notify=${2-no}
@ -853,7 +853,7 @@ msg="$msg\n$(date "+%F %T") Runtime: $run_time $min"
touch $USER_DATA/backup.conf touch $USER_DATA/backup.conf
sed -i "/$user.$DATE.tar/d" $USER_DATA/backup.conf sed -i "/$user.$DATE.tar/d" $USER_DATA/backup.conf
# Regestering new backup # Registering new backup
backup_str="BACKUP='$user.$DATE.tar'" backup_str="BACKUP='$user.$DATE.tar'"
backup_str="$backup_str TYPE='$BACKUP_SYSTEM' SIZE='$size'" backup_str="$backup_str TYPE='$BACKUP_SYSTEM' SIZE='$size'"
backup_str="$backup_str WEB='${web_list// /,}'" backup_str="$backup_str WEB='${web_list// /,}'"

View file

@ -9,8 +9,8 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Importing system enviroment as we run this script # Importing system environment as we run this script
# mostly by cron wich not read it by itself # mostly by cron which not read it by itself
source /etc/profile source /etc/profile
# Includes # Includes

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
job=$2 job=$2
min=$3 min=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
type=$1 type=$1
host=$2 host=$2
dbuser=$3 dbuser=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
database=$1 database=$1
user=$2 user=$2

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
database=$2 database=$2
password=$3; HIDE=3 password=$3; HIDE=3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
database=$2 database=$2
dbuser="$user"_"$3" dbuser="$user"_"$3"

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# info: change dns domain expiriation date # info: change dns domain expiration date
# options: USER DOMAIN EXP # options: USER DOMAIN EXP
# #
# The function of changing the term of expiration domain's registration. The # The function of changing the term of expiration domain's registration. The
@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")
@ -57,7 +57,7 @@ fi
#----------------------------------------------------------# #----------------------------------------------------------#
# Logging # Logging
log_history "changed whois expiriation date for $domain" log_history "changed whois expiration date for $domain"
log_event "$OK" "$EVENT" log_event "$OK" "$EVENT"
exit exit

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -11,7 +11,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -2,14 +2,14 @@
# info: change dns domain ttl # info: change dns domain ttl
# options: USER DOMAIN TTL # options: USER DOMAIN TTL
# #
# The function for chaning the time to live TTL parameter for all records. # The function for changing the time to live TTL parameter for all records.
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
domain=$1 domain=$1
user=$2 user=$2
ip=$3 ip=$3

View file

@ -13,7 +13,7 @@
# Importing system variables # Importing system variables
source /etc/profile source /etc/profile
# Argument defenition # Argument definition
rule=$1 rule=$1
action=$(echo $2|tr '[:lower:]' '[:upper:]') action=$(echo $2|tr '[:lower:]' '[:upper:]')
ip=$3 ip=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -2,14 +2,14 @@
# info: change mail domain catchall email # info: change mail domain catchall email
# options: USER DOMAIN EMAIL # options: USER DOMAIN EMAIL
# #
# The function changes mail domain cathcall. # The function changes mail domain catchall.
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain=$(echo $domain | tr '[:upper:]' '[:lower:]') domain=$(echo $domain | tr '[:upper:]' '[:lower:]')

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
# info: change remote dns domain expiriation date # info: change remote dns domain expiration date
# options: USER DOMAIN # options: USER DOMAIN
# #
# The function synchronize dns domain with the remote server. # The function synchronize dns domain with the remote server.
@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$2 domain=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$2 domain=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$2 domain=$2

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
key=$(echo "$1" | tr '[:lower:]' '[:upper:]' ) key=$(echo "$1" | tr '[:lower:]' '[:upper:]' )
value=$2 value=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
domain=$1 domain=$1
# Includes # Includes

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
ip=$1 ip=$1
ip_name=$2 ip_name=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
ip=$1 ip=$1
nat_ip=$2 nat_ip=$2
restart=$3 restart=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
ip=$1 ip=$1
user=$2 user=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
ip=$1 ip=$1
ip_status=$2 ip_status=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
language=$1 language=$1
# Includes # Includes

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
timezone=$1 timezone=$1
# Includes # Includes

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
email=$2 email=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
language=$2 language=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
fname=$2 fname=$2
lname=$3 lname=$3

View file

@ -2,14 +2,14 @@
# info: change user nameservers # info: change user nameservers
# options: USER NS1 NS2 [NS3] [NS4] [NS5] [NS6] [NS7] [NS8] # options: USER NS1 NS2 [NS3] [NS4] [NS5] [NS6] [NS7] [NS8]
# #
# The function for changing default nameservers for speciefic user. # The function for changing default nameservers for specific user.
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
ns1=$(echo $2 | sed -e 's/\.*$//g' -e 's/^\.*//g') ns1=$(echo $2 | sed -e 's/\.*$//g' -e 's/^\.*//g')
ns2=$(echo $3 | sed -e 's/\.*$//g' -e 's/^\.*//g') ns2=$(echo $3 | sed -e 's/\.*$//g' -e 's/^\.*//g')

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
package=$2 package=$2
force=$3 force=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
password=$2; HIDE=2 password=$2; HIDE=2

View file

@ -2,14 +2,14 @@
# info: change user shell # info: change user shell
# options: USER SHELL # options: USER SHELL
# #
# The function changes system shell of a user. Shell gives abilty to use ssh. # The function changes system shell of a user. Shell gives ability to use ssh.
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
shell=$2 shell=$2

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
type=$(echo "$2" | tr '[:lower:]' '[:upper:]') type=$(echo "$2" | tr '[:lower:]' '[:upper:]')
template=$3 template=$3

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -2,14 +2,14 @@
# info: change password for http auth user # info: change password for http auth user
# options: USER DOMAIN AUTH_USER AUTH_PASSWORD # options: USER DOMAIN AUTH_USER AUTH_PASSWORD
# #
# The call is used for chaning http auth user password # The call is used for changing http auth user password
#----------------------------------------------------------# #----------------------------------------------------------#
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$2 domain=$2
auth_user=$3 auth_user=$3
@ -20,7 +20,7 @@ source $VESTA/func/main.sh
source $VESTA/func/domain.sh source $VESTA/func/domain.sh
source $VESTA/conf/vesta.conf source $VESTA/conf/vesta.conf
# Definining htpasswd file # Defining htpasswd file
htpasswd="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd" htpasswd="$HOMEDIR/$user/conf/web/$WEB_SYSTEM.$domain.htpasswd"

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -5,7 +5,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
domain=$(idn -t --quiet -u "$2" ) domain=$(idn -t --quiet -u "$2" )
domain_idn=$(idn -t --quiet -a "$domain") domain_idn=$(idn -t --quiet -a "$domain")

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
password=$2; HIDE=2 password=$2; HIDE=2
ip=${3-127.0.0.1} ip=${3-127.0.0.1}

View file

@ -9,10 +9,10 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
module=$(echo $1 | tr '[:lower:]' '[:upper:]') module=$(echo $1 | tr '[:lower:]' '[:upper:]')
# Importing system enviroment # Importing system environment
source /etc/profile source /etc/profile
# Includes # Includes

View file

@ -9,11 +9,11 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
module=$(echo $1 | tr '[:lower:]' '[:upper:]') module=$(echo $1 | tr '[:lower:]' '[:upper:]')
license=$2 license=$2
# Importing system enviroment # Importing system environment
source /etc/profile source /etc/profile
# Includes # Includes

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
type=$1 type=$1
# Includes # Includes

View file

@ -9,7 +9,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
job=$2 job=$2

View file

@ -10,7 +10,7 @@
# Variable&Function # # Variable&Function #
#----------------------------------------------------------# #----------------------------------------------------------#
# Argument defenition # Argument definition
user=$1 user=$1
# Includes # Includes

Some files were not shown because too many files have changed in this diff Show more