Hi Marco,

This patch should fix it, unless I'm mistaken.  (I'm not completely
familiar with where things are installed in the Debian package.)

--- inn2-2.4.2/debian/inn2.postinst.orig        2005-05-01 20:46:01.000000000 
-0700
+++ inn2-2.4.2/debian/inn2.postinst     2005-05-01 20:56:07.000000000 -0700
@@ -4,18 +4,19 @@
 db_version 2.0
 
 init_inn_files() {
-    cd /var/lib/news
+    dbdir=`/usr/lib/news/bin/innconfval pathdb`
+    cd "$dbdir"
 
     for file in active newsgroups; do
        if [ ! -f $file ]; then
-           echo "Installing initial content for /var/lib/news/$file"
+           echo "Installing initial content for $dbdir/$file"
            install -m 644 -o news -g news \
                /usr/share/doc/inn2/examples/$file .
        fi
     done
 
     if [ ! -f history.dir ]; then
-      echo -n "Building history database in /var/lib/news... "
+      echo -n "Building history database in $dbdir... "
       if ! /usr/lib/news/bin/makehistory; then
         echo "failed!"
         return

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to