]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/paks/owncloud/install.sh
owncloud: Import self-signed certs for a start.
[people/teissler/ipfire-2.x.git] / 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