mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
pptpd: prefer 'install' over 'chmod/chown'
This commit is contained in:
parent
7e151ba980
commit
39dfdad529
1 changed files with 1 additions and 4 deletions
|
@ -101,15 +101,12 @@ with lib;
|
||||||
|
|
||||||
secrets="/etc/ppp-pptpd/chap-secrets"
|
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
|
# From: pptpd-1.4.0/samples/chap-secrets
|
||||||
# Secrets for authentication using CHAP
|
# Secrets for authentication using CHAP
|
||||||
# client server secret IP addresses
|
# client server secret IP addresses
|
||||||
#username pptpd password *
|
#username pptpd password *
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chown root:root "$secrets"
|
|
||||||
chmod 600 "$secrets"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue