Package: backuppc
Version: 2.1.0-10
Severity: serious

In postinst, you modify /etc/backuppc/config.pl which is a conffile.

http://release.debian.org/sarge_rc_policy.txt:

3. Configuration files

        Packages must not modify their own or other packages conffiles
        programmatically. (The only correct way to modify a conffile is
        the user running an editor specifically; if anything more automated
        is required or useful, configuration files must _NOT_ be handled as
        conffiles)


One possible solution is to move the `hostname` call into the config
file.  Or you could just make it not be a conffile.

--- /scratch/etc/backuppc/config.pl     2005-03-03 23:39:20.000000000 +0100
+++ /etc/backuppc/config.pl     2005-03-23 18:55:02.000000000 +0100
@@ -41,7 +41,9 @@
 #
 # Host name on which the BackupPC server is running.
 #
-$Conf{ServerHost} = 'XXXXXX';
+$ENV{'PATH'} = '/bin:/usr/bin';
+delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
+$Conf{ServerHost} = `hostname`;
 
 #
 # TCP port number on which the BackupPC server listens for and accepts
@@ -1610,7 +1612,7 @@
 #
 # URL of the BackupPC_Admin CGI script.  Used for email messages.
 #
-$Conf{CgiURL} = 'http://XXXXXX/backuppc/index.cgi';
+$Conf{CgiURL} = 'http://'.$Conf{ServerHost}.'/backuppc/index.cgi';
 
 #   
 # Language to use.  See lib/BackupPC/Lang for the list of supported

And remove the handling from the postinst.


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

Reply via email to