Bug fix: Debian Squeeze has the apache config file symlinked. Prevent
puppet warning.
/Stage[main]/Backuppc::Server/File[/etc/apache2/conf.d/backuppc.conf]
(warning): Ensure set to :present but file type is link so no content
will be synced
diff --git a/manifests/params.pp b/manifests/params.pp
index 3ea4ae0..442f56b 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -20,7 +20,11 @@
$cgi_image_dir = "${install_directory}/image"
$cgi_image_dir_url = '/backuppc/image'
$log_directory = '/var/lib/backuppc/log'
- $config_apache = '/etc/apache2/conf.d/backuppc.conf'
+ if ($::operatingsystemmajrelease == 6) {
+ $config_apache = '/etc/backuppc/apache.conf'
+ } else {
+ $config_apache = '/etc/apache2/conf.d/backuppc.conf'
+ }
$group_apache = 'www-data'
$par_path = '/usr/bin/par2\' if -x \'/usr/bin/par2'
$gzip_path = '/bin/gzip'