[Koha-bugs] [Bug 12952] Log koha actions to syslog too

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 31 11:25:39 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12952

Joonas Kylmälä <j.kylmala at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |j.kylmala at gmail.com

--- Comment #4 from Joonas Kylmälä <j.kylmala at gmail.com> ---
diff --git a/debian/scripts/koha-create b/debian/scripts/koha-create
index 6891ac1..5c4aa2a 100755
--- a/debian/scripts/koha-create
+++ b/debian/scripts/koha-create
@@ -546,8 +546,12 @@ eof
     # Generate and install Apache site-available file and log dir.
     generate_config_file apache-site.conf.in \
         "/etc/apache2/sites-available/$name.conf"
+    # Generate and install rsyslog conf
+    generate_config_file rsyslog-site.conf.in \
+        "/etc/rsyslog.d/99-$name.conf"
     mkdir "/var/log/koha/$name"
-    chown "$username:$username" "/var/log/koha/$name"
+    chown "$username:adm" "/var/log/koha/$name"

The last line should not have the group adm but $username instead.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list