From: Michael Tremer Date: Wed, 16 Apr 2014 14:50:18 +0000 (+0200) Subject: owncloud: Import self-signed certs for a start. X-Git-Tag: v2.15-core80~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7f86f1a7cb9f295530978d03de500c7f9c35cd6;p=ipfire-2.x.git owncloud: Import self-signed certs for a start. --- diff --git a/src/paks/owncloud/install.sh b/src/paks/owncloud/install.sh index 1a39ef94d4..52d4e34ce5 100644 --- a/src/paks/owncloud/install.sh +++ b/src/paks/owncloud/install.sh @@ -28,4 +28,10 @@ chown -R nobody:nobody /var/owncloud/* chmod 777 /srv/web/owncloud/apps chmod 777 /srv/web/owncloud/config +# Import web interface certificates if none exist. +if [ ! -e "/etc/httpd/owncloud.crt" ] && [ ! "/etc/httpd/owncloud.key" ]; then + cat /etc/httpd/server.crt > /etc/httpd/owncloud.crt + cat /etc/httpd/server.key > /etc/httpd/owncloud.key +fi + /etc/init.d/apache reload