mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +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(){
|
cloneOrUpdateRepos(){
|
||||||
|
# /usr/local should always exist, not sure about the src subfolder though
|
||||||
|
$SUDO mkdir -p /usr/local/src
|
||||||
|
|
||||||
# Get Git files
|
# Get Git files
|
||||||
getGitFiles ${pivpnFilesDir} ${pivpnGitUrl} || \
|
getGitFiles ${pivpnFilesDir} ${pivpnGitUrl} || \
|
||||||
{ echo "!!! Unable to clone ${pivpnGitUrl} into ${pivpnFilesDir}, unable to continue."; \
|
{ echo "!!! Unable to clone ${pivpnGitUrl} into ${pivpnFilesDir}, unable to continue."; \
|
||||||
|
@ -2224,6 +2227,9 @@ confUnattendedUpgrades(){
|
||||||
}
|
}
|
||||||
|
|
||||||
installScripts(){
|
installScripts(){
|
||||||
|
# Ensure /opt exists (issue #607)
|
||||||
|
$SUDO mkdir -p /opt
|
||||||
|
|
||||||
if [[ ${VPN} == 'wireguard' ]]; then
|
if [[ ${VPN} == 'wireguard' ]]; then
|
||||||
othervpn='openvpn'
|
othervpn='openvpn'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue