Skip to content

Commit

Permalink
chmod output files to prevent restrictive umask issue
Browse files Browse the repository at this point in the history
  • Loading branch information
binhex committed Jul 4, 2017
1 parent 03ad0b9 commit ba315da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions run/root/getvpnextip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ done

# write external ip address to text file, this is then read by the downloader script
echo "${external_ip}" > /home/nobody/vpn_external_ip.txt

# chmod file to prevent restrictive umask causing read issues for user nobody (owner is user root)
chmod +r /home/nobody/vpn_external_ip.txt
3 changes: 3 additions & 0 deletions run/root/getvpnport.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ if [[ "${VPN_PROV}" == "pia" ]]; then

fi

# chmod file to prevent restrictive umask causing read issues for user nobody (owner is user root)
chmod +r /home/nobody/vpn_incoming_port.txt

fi

else
Expand Down

0 comments on commit ba315da

Please sign in to comment.