Skip to content

Commit

Permalink
Rollback https for apt repos, as it doesn't work on Debian
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed May 1, 2018
1 parent 23ee40c commit 89c9cc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtualmin-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ install_virtualmin_release () {
run_ok "apt-get install --assume-yes apt-transport-https lsb-release ca-certificates" "Installing extra dependencies for Debian 8"
download 'https://packages.sury.org/php/apt.gpg'
run_ok "cp apt.gpg /etc/apt/trusted.gpg.d/php.gpg" "Adding GPG key for PHP7 packages"
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
echo "deb http://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
repos="virtualmin-jessie virtualmin-universal"
;;
9*)
Expand All @@ -687,7 +687,7 @@ install_virtualmin_release () {
exit 1
fi
for repo in $repos; do
printf "deb https://${LOGIN}software.virtualmin.com/vm/${vm_version}/${repopath}apt ${repo} main\n" >> /etc/apt/sources.list
printf "deb http://${LOGIN}software.virtualmin.com/vm/${vm_version}/${repopath}apt ${repo} main\n" >> /etc/apt/sources.list
done
run_ok "apt-get update" "Downloading repository metadata"
# Make sure universe repos are available
Expand Down

0 comments on commit 89c9cc7

Please sign in to comment.