[istsos] 01/01: Move logs to /var/logs
Johan Van de Wauw
johanvdw-guest at moszumanska.debian.org
Fri Jul 17 13:26:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
johanvdw-guest pushed a commit to branch master
in repository istsos.
commit c6dcb68787599564237c9e0d5820e01cf0e58fe8
Author: Johan Van de Wauw <johan.vandewauw at gmail.com>
Date: Fri Jul 17 15:24:41 2015 +0200
Move logs to /var/logs
---
debian/dirs | 3 +--
debian/patches/0001-Move-logs-to-var-logs.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
debian/postinst | 3 +--
4 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/debian/dirs b/debian/dirs
index 52978ec..8691662 100644
--- a/debian/dirs
+++ b/debian/dirs
@@ -1,2 +1 @@
-#/var/logs/istsos
-/usr/share/istsos/logs
+/var/logs/istsos
diff --git a/debian/patches/0001-Move-logs-to-var-logs.patch b/debian/patches/0001-Move-logs-to-var-logs.patch
new file mode 100644
index 0000000..9bbc18c
--- /dev/null
+++ b/debian/patches/0001-Move-logs-to-var-logs.patch
@@ -0,0 +1,21 @@
+From: Johan Van de Wauw <johan.vandewauw at gmail.com>
+Date: Fri, 17 Jul 2015 15:17:50 +0200
+Subject: Move logs to /var/logs
+
+---
+ config.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/config.py b/config.py
+index 4316541..bb1df96 100755
+--- a/config.py
++++ b/config.py
+@@ -24,7 +24,7 @@ from os import path
+ services_path = path.join(path.dirname(path.abspath(__file__)), "services")
+ istsoslib_path = path.join(path.dirname(path.abspath(__file__)), "istsoslib")
+ istsoswalib_path = path.join(path.dirname(path.abspath(__file__)), "walib")
+-errorlog_path = path.join(path.dirname(path.abspath(__file__)), "logs")
++errorlog_path = "/var/logs/istsos"
+ errorlog_level = "INFO"
+ debug=True
+ #==================================================================================
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6464c3a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Move-logs-to-var-logs.patch
diff --git a/debian/postinst b/debian/postinst
index afdd7e4..bc951ab 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -1,5 +1,4 @@
-#chown -R www-data:www-data /var/istsos/logs
-chown -R www-data:www-data /usr/share/istsos/logs
+chown -R www-data:www-data /var/logs/istsos/
chown -R www-data:www-data /usr/share/istsos/services
a2ensite istsos
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/istsos.git
More information about the Pkg-grass-devel
mailing list