owncloud: Cleanup install.sh script.

This commit is contained in:
Michael Tremer
2014-04-16 16:51:12 +02:00
parent f7f86f1a7c
commit cddd261650

View File

@@ -23,11 +23,15 @@
#
. /opt/pakfire/lib/functions.sh
extract_files
mkdir /var/owncloud/data
chown -R nobody:nobody /var/owncloud/*
# Fix permissions.
chmod 777 /srv/web/owncloud/apps
chmod 777 /srv/web/owncloud/config
# Create data directory.
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
cat /etc/httpd/server.crt > /etc/httpd/owncloud.crt
@@ -35,3 +39,5 @@ if [ ! -e "/etc/httpd/owncloud.crt" ] && [ ! "/etc/httpd/owncloud.key" ]; then
fi
/etc/init.d/apache reload
exit 0