mirror of
https://github.com/myvesta/vesta.git
synced 2025-03-12 04:35:23 -07:00
ranmed internal functions
This commit is contained in:
parent
2000d8f73b
commit
eef6d4df74
bin
v_add_db_basev_add_db_hostv_add_dns_domainv_add_dns_domain_recordv_add_ssl_certificatev_add_sys_cronv_add_sys_ipv_add_sys_userv_add_sys_user_reportsv_add_web_domainv_add_web_domain_aliasv_add_web_domain_cgiv_add_web_domain_elogv_add_web_domain_nginxv_add_web_domain_sslv_add_web_domain_statv_add_web_domain_stat_authv_backup_sys_userv_backup_sys_usersv_change_db_passwordv_change_dns_domain_expv_change_dns_domain_ipv_change_dns_domain_recordv_change_dns_domain_soav_change_dns_domain_tplv_change_dns_domain_ttlv_change_sys_cron_jobv_change_sys_ip_namev_change_sys_ip_ownerv_change_sys_ip_statusv_change_sys_user_contactv_change_sys_user_namev_change_sys_user_nsv_change_sys_user_packagev_change_sys_user_passwordv_change_sys_user_shellv_change_web_domain_ipv_change_web_domain_sslcertv_change_web_domain_sslhomev_change_web_domain_tplv_del_db_basev_del_db_dbasesv_del_db_hostv_del_dns_domainv_del_dns_domain_recordv_del_dns_domainsv_del_ssl_certificatev_del_sys_cronv_del_sys_ipv_del_sys_userv_del_sys_user_reportsv_del_web_domainv_del_web_domain_aliasv_del_web_domain_cgiv_del_web_domain_elogv_del_web_domain_nginxv_del_web_domain_sslv_del_web_domain_statv_del_web_domain_stat_authv_del_web_domainsv_get_dns_domain_valuev_get_sys_user_valuev_get_web_domain_valuev_list_db_basev_list_db_basesv_list_db_hostv_list_db_hostsv_list_dns_domainv_list_dns_domainsv_list_dns_templatev_list_dns_templatesv_list_ssl_certificatesv_list_sys_cronv_list_sys_interfacesv_list_sys_ipv_list_sys_ipsv_list_sys_userv_list_sys_user_ipsv_list_sys_user_nsv_list_sys_user_packagesv_list_sys_usersv_list_web_domainv_list_web_domainsv_list_web_domains_aliasv_list_web_domains_elogv_list_web_domains_nginxv_list_web_domains_sslv_list_web_domains_statsv_list_web_templatesv_rebuild_dns_domainsv_rebuild_sys_cronv_rebuild_web_domainsv_restart_cronv_restart_dnsv_restart_webv_suspend_db_basev_suspend_db_basesv_suspend_dns_domainv_suspend_dns_domainsv_suspend_sys_cron_job
@ -16,8 +16,8 @@ encoding=${7-UTF8}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -18,8 +18,8 @@ template=${8-template1}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -18,8 +18,8 @@ ttl=${7-14400}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -16,8 +16,8 @@ id=$6
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ cert=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/cert_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/cert.func
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Verifications #
|
||||
|
@ -17,8 +17,8 @@ job=$8
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/cron_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/cron.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -15,9 +15,9 @@ ip_name=$6
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/domain_func.sh # for namehosting
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/ip.func
|
||||
source $V_FUNC/domain.func # for namehosting
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Verifications #
|
||||
|
@ -15,7 +15,7 @@ lname=$6
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,8 +10,8 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/cron_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/cron.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -14,9 +14,9 @@ template=${4-default}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -14,8 +14,8 @@ dom_alias_idn=$(idn -t --quiet -a "$dom_alias" )
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ domain_idn=$(idn -t --quiet -a "$domain")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ domain_idn=$(idn -t --quiet -a "$domain")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -16,8 +16,8 @@ extentions=${4-$default_extentions}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -14,9 +14,9 @@ tpl_option=${4-single}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ type=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ auth_pass=$4
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,9 +11,9 @@ output=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
source $V_FUNC/db.func
|
||||
source $V_CONF/vesta.conf
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ source /etc/profile.d/vesta.sh
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ db_password=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ exp=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ ip=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Verifications #
|
||||
|
@ -16,8 +16,8 @@ value=$(idn -t --quiet -u "$6" )
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ soa=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Verifications #
|
||||
|
@ -13,8 +13,8 @@ template=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ ttl=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -17,8 +17,8 @@ command=$8
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/cron_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/cron.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ ip_name=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ ip=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ ip_status=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ email=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Verifications #
|
||||
|
@ -12,7 +12,7 @@ lname=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -18,7 +18,7 @@ ns8=$9
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ package=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ password=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ shell=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,9 +13,9 @@ ip=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ certificate=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ tpl_option=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ template=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ database=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,8 +10,8 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ host=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ named_conf=/etc/named.conf
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ id=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,8 +10,8 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ cert=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/cert_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/cert.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ job=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/cron_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/cron.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,9 +10,9 @@ ip=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/ip.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,10 +10,10 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
source $V_FUNC/db.func
|
||||
source $V_FUNC/ip.func
|
||||
source $V_CONF/vesta.conf
|
||||
|
||||
|
||||
|
@ -10,8 +10,8 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/cron_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/cron.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,9 +12,9 @@ domain_idn=$(idn -t --quiet -a "$domain")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -14,8 +14,8 @@ dom_alias_idn=$(idn -t --quiet -a "$dom_alias" )
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ domain_idn=$(idn -t --quiet -a "$domain")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ domain_idn=$(idn -t --quiet -a "$domain")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ domain_idn=$(idn -t --quiet -a "$domain")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ domain_idn=$(idn -t --quiet -a "$domain")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ domain=$(idn -t --quiet -u "$2" )
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ auth_user=$3
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,8 +10,8 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ key=$(echo "$3"| tr '[:lower:]' '[:upper:]'|sed -e "s/^/$/")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ key=$(echo "$2"| tr '[:lower:]' '[:upper:]'|sed -e "s/^/$/")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -13,8 +13,8 @@ key=$(echo "$3"| tr '[:lower:]' '[:upper:]'|sed -e "s/^/$/")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ format=${3-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
# Json function
|
||||
json_list_db() {
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ format=${3-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
# Json function
|
||||
json_list_dbhost() {
|
||||
|
@ -12,7 +12,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ format=${3-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
# Json func
|
||||
json_list_dns() {
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,7 +10,7 @@ format=${1-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_dnstpl() {
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_cert() {
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_cron() {
|
||||
|
@ -10,7 +10,7 @@ format=${1-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_iface() {
|
||||
|
@ -12,8 +12,8 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
# Json function
|
||||
json_list_ip() {
|
||||
|
@ -10,7 +10,7 @@ format=${1-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_ips() {
|
||||
|
@ -12,7 +12,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_user() {
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_user_ips() {
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_ns() {
|
||||
|
@ -10,7 +10,7 @@ format=${1-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_pkgs() {
|
||||
|
@ -10,7 +10,7 @@ format=${1-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
# Json function
|
||||
json_list_users() {
|
||||
|
@ -12,8 +12,8 @@ format=${3-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
# Json function
|
||||
json_list_domain() {
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,7 +11,7 @@ format=${2-shell}
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,9 +10,9 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,8 +10,8 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/cron_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/cron.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,9 +10,9 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/ip_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
source $V_FUNC/ip.func
|
||||
|
||||
url=${2-$V_SUSPEND_URL}
|
||||
|
||||
|
@ -3,20 +3,20 @@
|
||||
# dns system restart
|
||||
|
||||
# Importing variables
|
||||
source /etc/profile.d/vesta.sh
|
||||
source $VESTA/conf/vesta.conf
|
||||
source $VESTA/conf/vars.conf
|
||||
|
||||
bind() {
|
||||
/etc/init.d/named 'reload' >/dev/null 2>&1
|
||||
/etc/init.d/named reload >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
#$V_FUNC/report_issue 'sys' 'cron'
|
||||
echo "$E_RESTART_FAILED $V_EVENT"
|
||||
fi
|
||||
}
|
||||
|
||||
# Parsing config / or just source config
|
||||
dns_system=$(grep 'DNS_SYSTEM=' $V_CONF/vesta.conf | cut -f 2 -d \' )
|
||||
|
||||
if [ "$dns_system" = 'bind' ]; then
|
||||
if [ "$DNS_SYSTEM" = 'bind' ]; then
|
||||
bind
|
||||
fi
|
||||
|
@ -11,8 +11,8 @@ database=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,8 +10,8 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/db_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/db.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -12,8 +12,8 @@ domain_idn=$(idn -t --quiet -a "$domain")
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -10,8 +10,8 @@ user=$1
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/domain_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/domain.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
@ -11,8 +11,8 @@ job=$2
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
source $V_FUNC/shared_func.sh
|
||||
source $V_FUNC/cron_func.sh
|
||||
source $V_FUNC/shared.func
|
||||
source $V_FUNC/cron.func
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user