You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot reproduce this. Eg. running this little script the GID of the file stays the same and I verified the code is updating both the group (gid) and user (uid) ownership of the file. This is on Linux. Though it should work on any *nix. It will not work on Windows.
To run, replace [group] with a group are a member of (or anything if you test with root).
#!/bin/sh
rm -f out
echo foo > out
chgrp [group] out
cat > in.tmpl << EOF
bar
EOF
stat out
echo "-----------------------------------------------------------------"
consul-template -template "in.tmpl:out" -exec "cat out" -once > /dev/null
stat out
Consul Template version
consul-template v0.25.0 (99efa64)
Opening new issue for same problem as 1061
Command
Expected behavior
What should have happened?
File shouldn't have changed ownership
Actual behavior
What actually happened?
Ownership is replace with the user/group of the running service. In this case root/root
Steps to reproduce
References
The text was updated successfully, but these errors were encountered: