We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f1ab9a commit 15ff583Copy full SHA for 15ff583
1 file changed
rpm/SPECS/crowdsec-firewall-bouncer.spec
@@ -69,7 +69,7 @@ START=1
69
70
if grep -q '${BACKEND}' "$CONFIG"; then
71
newconfig=$(BACKEND="iptables" envsubst '$BACKEND' < "$CONFIG")
72
- echo "$newconfig" | install -m 0600 /dev/stdin "$CONFIG"
+ (umask 177 && echo "$newconfig" > "$CONFIG")
73
fi
74
75
if [ "$1" = "1" ]; then
@@ -147,7 +147,7 @@ START=1
147
148
149
newconfig=$(BACKEND="nftables" envsubst '$BACKEND' < "$CONFIG")
150
151
152
153
0 commit comments