Skip to content

Commit

Permalink
pptpd: prefer 'install' over 'chmod/chown' (NixOS#308085)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stunkymonkey authored Oct 25, 2024
2 parents 18536bf + 39dfdad commit 29cdb43
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nixos/modules/services/networking/pptpd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,12 @@ with lib;
secrets="/etc/ppp-pptpd/chap-secrets"
[ -f "$secrets" ] || cat > "$secrets" << EOF
[ -f "$secrets" ] || install -m 600 -o root -g root /dev/stdin "$secrets" << EOF
# From: pptpd-1.4.0/samples/chap-secrets
# Secrets for authentication using CHAP
# client server secret IP addresses
#username pptpd password *
EOF
chown root:root "$secrets"
chmod 600 "$secrets"
'';

serviceConfig = {
Expand Down

0 comments on commit 29cdb43

Please sign in to comment.