From 61c7151e3b98e87472d135249bb160ad8a57365b Mon Sep 17 00:00:00 2001 From: Orazio Date: Thu, 28 May 2020 12:09:02 +0200 Subject: [PATCH] Create directory structure if missing - /usr/local/src, when cloning the git repository - /opt (this one was already taken into account but I had accidentally removed the mkdir command in the previous commit). --- auto_install/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/auto_install/install.sh b/auto_install/install.sh index 697126f..4ecf1a4 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -999,6 +999,9 @@ getGitFiles(){ } cloneOrUpdateRepos(){ + # /usr/local should always exist, not sure about the src subfolder though + $SUDO mkdir -p /usr/local/src + # Get Git files getGitFiles ${pivpnFilesDir} ${pivpnGitUrl} || \ { echo "!!! Unable to clone ${pivpnGitUrl} into ${pivpnFilesDir}, unable to continue."; \ @@ -2224,6 +2227,9 @@ confUnattendedUpgrades(){ } installScripts(){ + # Ensure /opt exists (issue #607) + $SUDO mkdir -p /opt + if [[ ${VPN} == 'wireguard' ]]; then othervpn='openvpn' else