You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.1 KiB

  1. --- config.pl 2018-03-11 09:30:28.000000000 +0100
  2. +++ config.pl.new 2018-04-05 08:40:29.180000000 +0200
  3. @@ -41,7 +41,10 @@
  4. #
  5. # Host name on which the BackupPC server is running.
  6. #
  7. -$Conf{ServerHost} = 'XXXXXX';
  8. +$ENV{'PATH'} = '/bin:/usr/bin';
  9. +delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
  10. +$Conf{ServerHost} = $ENV{'HOSTNAME'};
  11. +chomp($Conf{ServerHost});
  12. #
  13. # TCP port number on which the BackupPC server listens for and accepts
  14. @@ -223,7 +226,7 @@
  15. #
  16. # Full path to various commands for archiving
  17. #
  18. -$Conf{SplitPath} = '/usr/bin/split';
  19. +$Conf{SplitPath} = '/usr/bin/split' if ( -x '/usr/bin/split' );
  20. $Conf{ParPath} = '';
  21. $Conf{CatPath} = '/bin/cat';
  22. $Conf{GzipPath} = '/bin/gzip';
  23. @@ -1572,7 +1575,7 @@
  24. # Full path for ssh. Security caution: normal users should not
  25. # allowed to write to this file or directory.
  26. #
  27. -$Conf{SshPath} = '/usr/bin/ssh';
  28. +$Conf{SshPath} = '/usr/bin/ssh' if ( -x '/usr/bin/ssh' );
  29. #
  30. # Full path for nmblookup. Security caution: normal users should not
  31. @@ -1874,7 +1877,7 @@
  32. # Full path to the sendmail command. Security caution: normal users
  33. # should not allowed to write to this file or directory.
  34. #
  35. -$Conf{SendmailPath} = '/usr/sbin/sendmail';
  36. +$Conf{SendmailPath} = '/usr/sbin/sendmail' if ( -x '/usr/sbin/sendmail' );
  37. #
  38. # Minimum period between consecutive emails to a single user.
  39. @@ -2028,13 +2031,13 @@
  40. # $Conf{CgiAdminUsers} = 'craig celia';
  41. # --> administrative users are only craig and celia'.
  42. #
  43. -$Conf{CgiAdminUserGroup} = '';
  44. -$Conf{CgiAdminUsers} = '';
  45. +$Conf{CgiAdminUserGroup} = 'backuppc';
  46. +$Conf{CgiAdminUsers} = 'backuppc';
  47. #
  48. # URL of the BackupPC_Admin CGI script. Used for email messages.
  49. #
  50. -$Conf{CgiURL} = 'http://XXXXXX/cgi-bin//BackupPC_Admin';
  51. +$Conf{CgiURL} = 'http://' . $Conf{ServerHost} . '/cgi-bin//BackupPC_Admin';
  52. #
  53. # Language to use. See lib/BackupPC/Lang for the list of supported
  54. @@ -2076,7 +2079,7 @@
  55. # dates (MM/DD), a value of 2 uses full YYYY-MM-DD format, and zero
  56. # for international dates (DD/MM).
  57. #
  58. -$Conf{CgiDateFormatMMDD} = 1;
  59. +$Conf{CgiDateFormatMMDD} = 2;
  60. #
  61. # If set, the complete list of hosts appears in the left navigation