Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
$ jq '.SMTP.ACTIVATE_MAIL = "0"' test.json > testnew.json
$ mv testnew.json test.json

Take special care that you cannot directly replace the original file, as the jq parser operates line by line. Therefore you need to create a new file, and then move it over the old one.

...

Code Block
languagebash
$ MAILADDRESS = "email@loxberry.de"
$ jq ".SMTP.MAILADDRESS = \"$MAILADDRESS\"" test.json > testnew.json
$ mv testnew.json test.json