Enable/Disable systemd services

this works:

nc -U /run/snapd.socket <<EOF
PUT /v2/snaps/system/conf HTTP/1.0
Content-Length: 31

{"service.ssh.disable": false}
EOF
2 Likes