# OPERATING SYSTEM
systeme=$(sed 's/\\n\ \\l//g' /etc/issue)
- # ADDING NEW JSON KEYS
- # PRODUCT REFERENCE (requires jq)
- jq '. + { "reference": "'"${instance_reference}"'" }' response.json > tmp1.json
+ # ADDING NEW JSON KEYS (requires jq)
+ # PRODUCT REFERENCE
+ ./jq '. + { "reference": "'"${instance_reference}"'" }' response.json > tmp1.json
# USER TYPE
- jq '. + { "usager_type": "'"${usager_type}"'" }' tmp1.json > tmp2.json
+ ./jq '. + { "usager_type": "'"${usager_type}"'" }' tmp1.json > tmp2.json
# DISCS INFO
- jq '. + { "disques": "'"${disques}"'" }' tmp2.json > tmp3.json
+ ./jq '. + { "disques": "'"${disques}"'" }' tmp2.json > tmp3.json
# OS
- jq '. + { "systeme": "'"${systeme}"'" }' tmp3.json > tmp4.json
+ ./jq '. + { "systeme": "'"${systeme}"'" }' tmp3.json > tmp4.json
# EXTERNAL FQDN
- jq '. + { "fqdn_externe": "'"${instance_fqdn_externe}"'" }' tmp4.json > tmp5.json
+ ./jq '. + { "fqdn_externe": "'"${instance_fqdn_externe}"'" }' tmp4.json > tmp5.json
# INTERNAL FQDN
- jq '. + { "fqdn_interne": "'"${instance_fqdn_interne}"'" }' tmp5.json > tmp6.json
+ ./jq '. + { "fqdn_interne": "'"${instance_fqdn_interne}"'" }' tmp5.json > tmp6.json
# CHANNEL (type of appliance, ie PROD or QUALIF)
- jq '. + { "canal": "'"${instance_canal}"'" }' tmp6.json > request.json
+ ./jq '. + { "canal": "'"${instance_canal}"'" }' tmp6.json > request.json
# SENDING UPDATE TO SERVER
curl --cert certs/agent.pem --key certs/agent.key --cacert certs/cacert_adullact.pem -X POST -H "${request_type}" --data-binary "@request.json" -L "https://""${allo_serveur_url}""?action=upload_info" --output "response_server" 2> /dev/null