@@ -188,13 +188,13 @@ update_domain_zone() {
188188 RECORD=$(idn --quiet -a -t "$RECORD")
189189 VALUE=$(idn --quiet -a -t "$VALUE")
190190 eval echo -e "\"$fields\""|sed -e "s/%quote%/'/g" >> $conf
191- done < $V_USERS/$user/zones /$domain
191+ done < $V_USERS/$user/dns /$domain
192192
193193}
194194
195195get_next_dns_record() {
196196 # Parsing config
197- curr_str=$(grep "ID=" $V_USERS/$user/zones /$domain|cut -f 2 -d \'|\
197+ curr_str=$(grep "ID=" $V_USERS/$user/dns /$domain|cut -f 2 -d \'|\
198198 sort -n|tail -n1)
199199
200200 # Print result
@@ -203,7 +203,7 @@ get_next_dns_record() {
203203
204204is_dns_record_free() {
205205 # Checking record id
206- check_id=$(grep "ID='$id'" $V_USERS/$user/zones /$domain)
206+ check_id=$(grep "ID='$id'" $V_USERS/$user/dns /$domain)
207207
208208 if [ ! -z "$check_id" ]; then
209209 echo "Error: ID exist"
@@ -214,7 +214,7 @@ is_dns_record_free() {
214214
215215sort_dns_records() {
216216 # Defining conf
217- conf="$V_USERS/$user/zones /$domain"
217+ conf="$V_USERS/$user/dns /$domain"
218218 cat $conf |sort -n -k 2 -t \' >$conf.tmp
219219 mv -f $conf.tmp $conf
220220}
@@ -460,7 +460,7 @@ is_web_domain_cert_valid() {
460460
461461is_dns_record_valid() {
462462 # Checking record id
463- check_id=$(grep "^ID='$id'" $V_USERS/$user/zones /$domain)
463+ check_id=$(grep "^ID='$id'" $V_USERS/$user/dns /$domain)
464464
465465 if [ -z "$check_id" ]; then
466466 echo "Error: ID not exist"
@@ -533,7 +533,7 @@ del_dns_domain() {
533533 exit $E_PARSE_ERROR
534534 fi
535535 sed -i "$string d" $conf
536- rm -f $V_USERS/$user/zones /$domain
536+ rm -f $V_USERS/$user/dns /$domain
537537}
538538
539539del_web_domain() {
0 commit comments