]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
owncloud: Cleanup install.sh script.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 16 Apr 2014 14:51:12 +0000 (16:51 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 10 Jul 2014 17:24:50 +0000 (19:24 +0200)
src/paks/owncloud/install.sh

index 52d4e34ce5577602136918b064ea10ff9743e8f4..22ad31845ce06996c7c2e63d06562063b4c656cd 100644 (file)
 #
 . /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