[Pkg-owncloud-commits] [SCM] owncloud.git branch, master, updated. debian/5.0.8+dfsg-2-1-gb2d53a7
David Prévot
taffit at debian.org
Sun Jul 14 04:01:42 UTC 2013
The following commit has been merged in the master branch:
commit b2d53a76c294c4e2dfc5ca9afebb9426f0f1b18c
Author: David Prévot <taffit at debian.org>
Date: Sat Jul 13 23:13:17 2013 -0400
Improve logfile handling
Closes: #715484
diff --git a/debian/owncloud.links b/debian/owncloud.links
index 7f5b3ef..92c7e5a 100644
--- a/debian/owncloud.links
+++ b/debian/owncloud.links
@@ -7,6 +7,9 @@ var/lib/owncloud/themes usr/share/owncloud/themes
etc/owncloud usr/share/owncloud/config
etc/owncloud/htaccess usr/share/owncloud/.htaccess
+# Log into /var/log
+var/log/owncloud.log var/lib/owncloud/data/owncloud.log
+
# Link JavaScript files from the locations in dependency packages.
usr/share/javascript/jquery/jquery.min.js usr/share/owncloud/core/js/jquery-1.7.2.min.js
usr/share/javascript/jquery-jplayer/Jplayer.swf usr/share/owncloud/apps/media/js/Jplayer.swf
diff --git a/debian/owncloud.logrotate b/debian/owncloud.logrotate
new file mode 100644
index 0000000..39630bd
--- /dev/null
+++ b/debian/owncloud.logrotate
@@ -0,0 +1,8 @@
+/var/log/owncloud {
+ rotate 6
+ monthly
+ compress
+ missingok
+ notifempty
+ create 640 www-data adm
+}
diff --git a/debian/owncloud.preinst b/debian/owncloud.preinst
new file mode 100644
index 0000000..49986e9
--- /dev/null
+++ b/debian/owncloud.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+# Don’t lose existing logfile on upgrade [ Can be removed before Jessie ]
+file=/var/lib/owncloud/data/owncloud.log
+if [ -f $file ] && [ ! -L $file ]; then
+ mv $file /var/log 2>/dev/null
+fi
+
+exit 0
--
owncloud.git
More information about the Pkg-owncloud-commits
mailing list