File: fix-amserverconfig-template-path

package info (click to toggle)
amanda 1%3A3.5.4-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,420 kB
  • sloc: ansic: 197,218; perl: 109,331; xml: 16,126; sh: 4,180; makefile: 2,811; awk: 502; lex: 407; yacc: 347; tcl: 118; sql: 19; sed: 16; php: 2
file content (26 lines) | stat: -rw-r--r-- 1,231 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: adjust template path to work with Debian 
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=551564
Author: Bill Blough <devel@blough.us>

Index: amanda.git/server-src/amserverconfig.pl
===================================================================
--- amanda.git.orig/server-src/amserverconfig.pl	2017-01-15 19:23:30.394520556 +0000
+++ amanda.git/server-src/amserverconfig.pl	2017-01-15 19:23:30.390520550 +0000
@@ -34,7 +34,7 @@ use Amanda::Constants;
 my $confdir="$CONFIG_DIR";
 my $tmpdir="$AMANDA_DBGDIR";
 my $amandahomedir="$localstatedir/amanda";
-my $templatedir="$amdatadir/template.d"; #rpm install template files here
+my $templatedir="${amdatadir}-common/template.d"; #rpm install template files here
 my $def_tapedev="file:$amandahomedir/vtapes";
 
 my $amanda_user="$Amanda::Constants::CLIENT_LOGIN";
@@ -417,7 +417,7 @@ sub create_customconf{
 
 
 sub check_xinetd{
-    &mprint ("/var/lib/amanda/example/xinetd.amandaserver contains the latest Amanda server daemon configuration.\n");
+    &mprint ("/usr/share/doc/amanda-server/examples/xinetd.amandaserver contains the latest Amanda server daemon configuration.\n");
     &mprint ("Please merge it to /etc/xinetd.d/amandaserver.\n");
 }