From 412c8e83ac94ff47cb532495deba3638d7645ae0 Mon Sep 17 00:00:00 2001 From: 4s3ti <4s3ti@protonmail.com> Date: Wed, 8 Jan 2020 13:16:01 +0100 Subject: [PATCH] Issue #607 InstallScripts function: Added -p flag on mkdir, this fixes script silently exiting if /opt does not exist (Issue #607) --- auto_install/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index a12b2d0..b1f441c 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -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