add quote for response
This commit is contained in:
parent
41a1db3ef5
commit
4708a16bdf
|
@ -31,7 +31,7 @@ verif() {
|
|||
for V in creole.reseau.unbound_route_address creole.reseau.unbound_domain_name creole.serveur_dns.unbound_local_zones creole.reseau.unbound_ip_address_cidr; do
|
||||
i=$((i+1))
|
||||
R=$(cucchiaiata-cli setting.session.$1.get -s $S -n $V | jq -Mcr .content[])
|
||||
[ $R = "${argv[i]}" ]
|
||||
[ "$R" = "${argv[i]}" ]
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -113,7 +113,7 @@ cucchiaiata-cli setting.template.generate -s dns.cadoles.com
|
|||
cucchiaiata-cli setting.servermodel.dependency.add -m aca -a openssh -o cadoles -e last
|
||||
S=$(cucchiaiata-cli setting.session.server.start -s dns.cadoles.com | jq -r .session_id)
|
||||
R=$(cucchiaiata-cli setting.session.server.get -s $S -n creole.serveur_ssh.ssh_allow_networks | jq -Mcr .content[])
|
||||
[ $R = "[]" ]
|
||||
[ "$R" = "[]" ]
|
||||
cucchiaiata-cli setting.session.server.stop -s $S
|
||||
|
||||
S=$(cucchiaiata-cli setting.session.servermodel.start -m aca -e last| jq -r .session_id)
|
||||
|
@ -122,7 +122,7 @@ cucchiaiata-cli setting.session.servermodel.stop -s $S -a
|
|||
|
||||
S=$(cucchiaiata-cli setting.session.server.start -s dns.cadoles.com | jq -r .session_id)
|
||||
R=$(cucchiaiata-cli setting.session.server.get -s $S -n creole.serveur_ssh.ssh_allow_networks | jq -Mcr .content[])
|
||||
[ $R = '["admin.cadoles.com"]' ]
|
||||
[ "$R" = '["admin.cadoles.com"]' ]
|
||||
cucchiaiata-cli setting.session.server.stop -s $S
|
||||
|
||||
# Regenerate configuration
|
||||
|
|
Loading…
Reference in New Issue