mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-19 21:04:06 -07:00
Fix for Ubuntu 14.04
This commit is contained in:
parent
6cd65c593d
commit
2f300aab69
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ json_list_ns() {
|
||||||
ns=$(grep "^NS='" $USER_DATA/user.conf |cut -f 2 -d \')
|
ns=$(grep "^NS='" $USER_DATA/user.conf |cut -f 2 -d \')
|
||||||
echo '['
|
echo '['
|
||||||
i=1
|
i=1
|
||||||
nslistc=$(echo -e "${ns//,/\n}"|wc -l)
|
nslistc=$(echo -e "${ns//,/\\n}"|wc -l)
|
||||||
for nameserver in ${ns//,/ };do
|
for nameserver in ${ns//,/ };do
|
||||||
if [ "$i" -ne "$nslistc" ]; then
|
if [ "$i" -ne "$nslistc" ]; then
|
||||||
echo -e "\t\"$nameserver\","
|
echo -e "\t\"$nameserver\","
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue