This commit is contained in:
Andy 2018-06-30 21:25:03 +02:00
parent 4076c4b4ef
commit bb9f73a4ea
Signed by: arno
GPG Key ID: 9076D5E6B31AE99C

View File

@ -151,14 +151,13 @@ gen_server_x509() {
install_openssl() {
set +e
type openssl >/dev/null
type openssl >/dev/null 2>&1
if [ $? -eq 0 ]; then
return;
fi
grep -q Ubuntu /etc/lsb-release
if [ $? -eq 0 ]; then
echo "[${ME}] Installing openssl in Ubuntu"
if [ -f /etc/debian_version ]; then
echo "[${ME}] Installing openssl in Debian/Ubuntu"
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get -y install openssl