From: Michael Tremer Date: Wed, 16 Apr 2014 14:51:12 +0000 (+0200) Subject: owncloud: Cleanup install.sh script. X-Git-Tag: v2.15-core80~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cddd2616501879bb0da165da40e894f69f98531c;p=ipfire-2.x.git owncloud: Cleanup install.sh script. --- diff --git a/src/paks/owncloud/install.sh b/src/paks/owncloud/install.sh index 52d4e34ce5..22ad31845c 100644 --- a/src/paks/owncloud/install.sh +++ b/src/paks/owncloud/install.sh @@ -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