[lxc-devel] [lxc/master] templates: fedora requires openssl binary

glensc on Github lxc-bot at linuxcontainers.org
Tue Aug 23 16:33:11 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 424 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160823/d2ab4abe/attachment.bin>
-------------- next part --------------
From 51f88c5c89bdd7acf3831f5a8e85c0789da17676 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= <glen at delfi.ee>
Date: Tue, 23 Aug 2016 19:31:38 +0300
Subject: [PATCH] templates: fedora requires openssl binary
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

/usr/share/lxc/templates/lxc-fedora: line 1078: openssl: command not found

Signed-off-by: Elan Ruusamäe <glen at delfi.ee>
---
 templates/lxc-fedora.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in
index a83a590..88f5ca9 100644
--- a/templates/lxc-fedora.in
+++ b/templates/lxc-fedora.in
@@ -1336,6 +1336,10 @@ type curl >/dev/null 2>&1
 if [ $? -ne 0 ]; then
     needed_pkgs="curl $needed_pkgs"
 fi
+type openssl >/dev/null 2>&1
+if [ $? -ne 0 ]; then
+    needed_pkgs="openssl $needed_pkgs"
+fi
 
 if [ -n "$needed_pkgs" ]; then
     echo "Missing commands: $needed_pkgs"


More information about the lxc-devel mailing list