mirror of
https://github.com/pia-foss/manual-connections.git
synced 2025-02-05 14:08:29 +00:00
Make the OpenVPN credentials file readable only by root
It previously was world-readable (0644 permissions).
This commit is contained in:
parent
f312938435
commit
69dd8154ce
|
@ -108,6 +108,7 @@ mkdir -p /opt/piavpn-manual
|
||||||
rm -f /opt/piavpn-manual/credentials /opt/piavpn-manual/route_info
|
rm -f /opt/piavpn-manual/credentials /opt/piavpn-manual/route_info
|
||||||
echo ${PIA_TOKEN:0:62}"
|
echo ${PIA_TOKEN:0:62}"
|
||||||
"${PIA_TOKEN:62} > /opt/piavpn-manual/credentials || exit 1
|
"${PIA_TOKEN:62} > /opt/piavpn-manual/credentials || exit 1
|
||||||
|
chmod 600 /opt/piavpn-manual/credentials
|
||||||
|
|
||||||
# Translate connection settings variable
|
# Translate connection settings variable
|
||||||
IFS='_'
|
IFS='_'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user