mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Moved package check to relevant preconfigurePackages() function
This commit is contained in:
parent
427c484cac
commit
ad363b717b
1 changed files with 5 additions and 4 deletions
|
@ -302,10 +302,6 @@ distroCheck(){
|
|||
;;
|
||||
esac
|
||||
|
||||
if [ "$PLAT" = "Raspbian" ]; then
|
||||
BASE_DEPS+=(dhcpcd5)
|
||||
fi
|
||||
|
||||
echo "PLAT=${PLAT}" > ${tempsetupVarsFile}
|
||||
echo "OSCN=${OSCN}" >> ${tempsetupVarsFile}
|
||||
}
|
||||
|
@ -467,6 +463,11 @@ preconfigurePackages(){
|
|||
fi
|
||||
fi
|
||||
|
||||
# We set static IP only on Raspbian
|
||||
if [ "$PLAT" = "Raspbian" ]; then
|
||||
BASE_DEPS+=(dhcpcd5)
|
||||
fi
|
||||
|
||||
# if ufw is enabled, configure that.
|
||||
# running as root because sometimes the executable is not in the user's $PATH
|
||||
if $SUDO bash -c 'command -v ufw' > /dev/null; then
|
||||
|
|
Loading…
Reference in a new issue