[Pkg-owncloud-commits] [SCM] owncloud.git branch, master, updated. debian/5.0.8+dfsg-2-4-g6cb7ff2

David Prévot taffit at debian.org
Sun Jul 14 16:28:57 UTC 2013


The following commit has been merged in the master branch:
commit bca8aedc8564e7385938da3abbe83177420ae629
Author: David Prévot <taffit at debian.org>
Date:   Sun Jul 14 12:03:19 2013 -0400

    Create empty logfile on install
    
    Git-Dch: Ignore

diff --git a/debian/owncloud.postinst b/debian/owncloud.postinst
index 69c2fff..a340677 100644
--- a/debian/owncloud.postinst
+++ b/debian/owncloud.postinst
@@ -48,6 +48,13 @@ case "$1" in
             chown www-data:www-data /etc/owncloud/htaccess
             chmod 0640 /etc/owncloud/htaccess
         fi
+	# Create empty logfile if needed
+	file=/var/log/owncloud.log
+	if [ ! -f $file ]; then
+		touch $file
+		chown www-data:adm $file
+		chmod 0640 $file
+	fi
 	# Replace directory with symlink [ Can be removed before Jessie ]
 	dir="/usr/share/owncloud/apps/files_pdfviewer/3rdparty/pdfjs/images"
 	if [ -d $dir ] && [ ! -L $dir ]; then

-- 
owncloud.git



More information about the Pkg-owncloud-commits mailing list