File: adapt-check_cli_version.sh-for-debian.patch

package info (click to toggle)
cacti 1.2.24%2Bds1-1%2Bdeb12u5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 71,012 kB
  • sloc: php: 119,968; javascript: 29,780; sql: 2,632; xml: 1,823; sh: 1,248; perl: 194; makefile: 65; ruby: 9
file content (19 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: cacti/tests/tools/check_cli_version.sh
===================================================================
--- cacti.orig/tests/tools/check_cli_version.sh
+++ cacti/tests/tools/check_cli_version.sh
@@ -20,11 +20,10 @@
 #| http://www.cacti.net/                                                   |
 #+-------------------------------------------------------------------------+
 
-SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
-cd $SCRIPTPATH/../../
+cd /usr/share/cacti
 FILES1=`find cli -name \*.php | grep -v "index.php" | sort`
-FILES2=`ls -1 poller*.php | egrep -v "(index.php|pollers.php)" | sort`
-FILES3="cactid.php cmd.php"
+FILES2=`ls -1 site/poller*.php | egrep -v "(index.php|pollers.php)" | sort`
+FILES3="site/cactid.php site/cmd.php"
 
 FAILED=0
 for script in $FILES1 $FILES2 $FILES3; do