]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
owncloud: Import self-signed certs for a start.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Apr 2014 14:50:18 +0000 (16:50 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jul 2014 17:24:50 +0000 (19:24 +0200)
src/paks/owncloud/install.sh

index 1a39ef94d4cf4059c3bb1e7eb21775014426274f..52d4e34ce5577602136918b064ea10ff9743e8f4 100644 (file)
@@ -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