Use pem if available

This commit is contained in:
Bob Mottram 2016-11-13 10:26:58 +00:00
parent f80bb1f6cc
commit 95cf995808
5 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,8 @@
#+TITLE: #+TITLE:
#+AUTHOR: Bob Mottram #+AUTHOR: Bob Mottram
#+EMAIL: bob@freedombone.net #+EMAIL: bob@freedombone.net
#+KEYWORDS: freedombox, debian, beaglebone, red matrix, email, web server, home server, internet, censorship, surveillance, social network, irc, jabber #+KEYWORDS: freedombone, apps
#+DESCRIPTION: Turn the Beaglebone Black into a personal communications server #+DESCRIPTION: List of apps available on freedombone
#+OPTIONS: ^:nil toc:nil #+OPTIONS: ^:nil toc:nil
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="freedombone.css" /> #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="freedombone.css" />

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

BIN
img/mailpile_setup.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -365,6 +365,7 @@ function install_mailpile {
fi fi
if [ -f /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem ]; then if [ -f /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem ]; then
chown mailpile: /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem chown mailpile: /etc/ssl/certs/${MAILPILE_DOMAIN_NAME}.pem
sed -i "s|.crt|.pem|g" /etc/nginx/sites-available/${MAILPILE_DOMAIN_NAME}
fi fi
if [ -f /etc/ssl/private/${MAILPILE_DOMAIN_NAME}.key ]; then if [ -f /etc/ssl/private/${MAILPILE_DOMAIN_NAME}.key ]; then
chown mailpile: /etc/ssl/private/${MAILPILE_DOMAIN_NAME}.key chown mailpile: /etc/ssl/private/${MAILPILE_DOMAIN_NAME}.key