File: fix_path

package info (click to toggle)
logwatch 5.2.2-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,112 kB
  • ctags: 42
  • sloc: perl: 9,032; sh: 65; makefile: 54
file content (11 lines) | stat: -rwxr-xr-x 207 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

PROG=scripts/logwatch.pl
TMP=project/tmp/fix_path.tmp

cp $PROG $TMP

sed \
   -e 's/^\(my \$BaseDir = .*kirk.*\)$/#\1/' \
   -e 's/^#\(my \$BaseDir = "\/etc\/log\.d";\)$/\1/' \
   $TMP > $PROG