mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
apt-transport-https is required since we will use HTTPS repos in the script
This commit is contained in:
parent
2c6ba65288
commit
6fd451dac0
1 changed files with 6 additions and 5 deletions
|
@ -418,12 +418,13 @@ notifyPackageUpdatesAvailable(){
|
||||||
}
|
}
|
||||||
|
|
||||||
preconfigurePackages(){
|
preconfigurePackages(){
|
||||||
# Add support for https repositories if there are any that use it otherwise the installation will silently fail
|
# Add support for https repositories that will be used later on
|
||||||
if [[ -f /etc/apt/sources.list ]]; then
|
if [[ -f /etc/apt/sources.list ]]; then
|
||||||
if grep -q https /etc/apt/sources.list; then
|
# Only on stretch because on buster apt already support https transport
|
||||||
BASE_DEPS+=("apt-transport-https")
|
if [[ ${OSCN} == "stretch" ]]; then
|
||||||
|
BASE_DEPS+=("apt-transport-https")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${OSCN} == "buster" ]]; then
|
if [[ ${OSCN} == "buster" ]]; then
|
||||||
$SUDO update-alternatives --set iptables /usr/sbin/iptables-legacy
|
$SUDO update-alternatives --set iptables /usr/sbin/iptables-legacy
|
||||||
|
|
Loading…
Reference in a new issue