]> the.earth.li Git - onak.git/commitdiff
Create logfile for Debian package
authorJonathan McDowell <noodles@earth.li>
Tue, 14 Sep 2004 17:13:20 +0000 (17:13 +0000)
committerJonathan McDowell <noodles@earth.li>
Tue, 14 Sep 2004 17:13:20 +0000 (17:13 +0000)
Create our logfile as part of the postinst for the Debian package and
make sure the onak user can write to it.

debian/postinst

index c34d68e8e84f91854317bd19eca8e0ede57c7678..1252508da87606529c3608814fd66c2f280d6494 100644 (file)
@@ -10,6 +10,10 @@ if [ "$1" = "configure" ]; then
     # Take ownership of the database directory
     chown -R onak /var/lib/onak
 
+    # Create our logfile
+    touch /var/log/onak.log
+    chown onak /var/log/onak.log
+
     # Make the CGI tools setuid onak
     for i in /usr/lib/cgi-bin/pks/*
     do