The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc-templates/pull/18

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: KATOH Yasufumi <ka...@jazz.email.ne.jp>
From 937758dba928cc56cccc1f8cb2812f862a5c89e5 Mon Sep 17 00:00:00 2001
From: KATOH Yasufumi <ka...@jazz.email.ne.jp>
Date: Tue, 2 Apr 2019 16:01:13 +0900
Subject: [PATCH] plamo: Support https as download scheme and default to https

Signed-off-by: KATOH Yasufumi <ka...@jazz.email.ne.jp>
---
 templates/lxc-plamo.in | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in
index 5eef088..2145d01 100644
--- a/templates/lxc-plamo.in
+++ b/templates/lxc-plamo.in
@@ -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
@@ -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"}
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to