opencredo/kubefuse

Make sed work

Opened this issue · 0 comments

Modifying a file with sed doesn't work. Either in place or using redirection:

sed -e 's/  replicas: 1/  replicas: 2/g' testmount/default/rc/postgres/yaml > testmount/default/rc/postgres/yaml

I have a feeling that instead of truncating the file and overwriting it sed tries to create a new file and move it in its place. Haven't looked into this though, but it would be nice to get this working.