InstallScripts function:
  Added -p flag on mkdir, this fixes script silently exiting if /opt
  does not exist (Issue #607)
This commit is contained in:
4s3ti 2020-01-08 13:16:01 +01:00
parent 92381fc2a6
commit 412c8e83ac

View file

@ -1888,7 +1888,7 @@ installScripts(){
echo ":::"
echo -n -e "::: Installing scripts to /opt/pivpn...\n"
if [ ! -d /opt/pivpn ]; then
$SUDO mkdir /opt/pivpn
$SUDO mkdir -p /opt/pivpn
$SUDO chown root:root /opt/pivpn
$SUDO chmod 0755 /opt/pivpn
fi