mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 10:50:16 +00:00
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).
This commit is contained in:
parent
823afa3fbb
commit
61c7151e3b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue