owncloud: with non-existent certificates they were not copied. corrected install.sh to the effect

This commit is contained in:
Daniel Weismüller
2014-05-02 08:33:45 +02:00
committed by Michael Tremer
parent 5f4ebb7f66
commit 893450d382

View File

@@ -34,7 +34,7 @@ mkdir -p /var/owncloud/data
chown -R nobody:nobody /var/owncloud
# Import web interface certificates if none exist.
if [ ! -e "/etc/httpd/owncloud.crt" ] && [ ! "/etc/httpd/owncloud.key" ]; then
if [ ! -e "/etc/httpd/owncloud.crt" ] && [ ! -e "/etc/httpd/owncloud.key" ]; then
cat /etc/httpd/server.crt > /etc/httpd/owncloud.crt
cat /etc/httpd/server.key > /etc/httpd/owncloud.key
fi