Skip to content

Commit

Permalink
Merge pull request #18 from tenforward/plamo
Browse files Browse the repository at this point in the history
plamo: Support https as download scheme and default to https
  • Loading branch information
brauner authored Apr 2, 2019
2 parents 71c91d4 + 937758d commit c34126d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions templates/lxc-plamo.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ download_plamo() {
# download a mini plamo into a cache
echo "Downloading Plamo-$release minimal..."
cd $ptcache
case $DLSCHEME in http) depth=2 ;; ftp) depth=3 ;; esac
case $DLSCHEME in
http|https) depth=2 ;;
ftp) depth=3 ;;
esac
rej=${IGNOREPKGS%% *} ; [ -n "$rej" ] && rej="$rej-*"
if [ `echo $IGNOREPKGS | wc -w` -gt 1 ] ; then
for p in ${IGNOREPKGS#* } ; do rej="$rej,$p-*" ; done
Expand Down Expand Up @@ -429,7 +432,7 @@ else
ADDONPKGS=${ADDONPKGS-"`echo contrib/Hamradio/{morse,qrq}`"}
fi

DLSCHEME=${DLSCHEME:-"http"}
DLSCHEME=${DLSCHEME:-"https"}
MIRRORSRV=${MIRRORSRV:-"repository.plamolinux.org"}
MIRRORPATH=${MIRRORPATH:-"/pub/linux/Plamo"}
CATEGORIES=${CATEGORIES-"00_base 01_minimum"}
Expand Down

0 comments on commit c34126d

Please sign in to comment.