Skip to content

Commit

Permalink
Hotfix: use umask instead of chmod to change permissions of WireGuard…
Browse files Browse the repository at this point in the history
… keys
  • Loading branch information
mina-alber committed May 24, 2018
1 parent fb634b5 commit 43ea072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@


- name: Generate WireGuard private and public keys
shell: wg genkey | tee /etc/wireguard/privatekey | wg pubkey > /etc/wireguard/publickey | chmod 600 /etc/wireguard/privatekey
shell: umask 077 && wg genkey | tee /etc/wireguard/privatekey | wg pubkey > /etc/wireguard/publickey


- name: Register WireGuard private key as a variable
Expand Down

0 comments on commit 43ea072

Please sign in to comment.