X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=blobdiff_plain;f=src%2Fpaks%2Fowncloud%2Finstall.sh;fp=src%2Fpaks%2Fowncloud%2Finstall.sh;h=52d4e34ce5577602136918b064ea10ff9743e8f4;hp=1a39ef94d4cf4059c3bb1e7eb21775014426274f;hb=f7f86f1a7cb9f295530978d03de500c7f9c35cd6;hpb=bccb7c5e482801bc4e39a4ff170ffd1b84cb5808 diff --git a/src/paks/owncloud/install.sh b/src/paks/owncloud/install.sh index 1a39ef94d..52d4e34ce 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