Skip to content

Commit

Permalink
QA: More testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWitness committed Apr 8, 2023
1 parent 0e19e3f commit 845e713
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/tools/check_cli_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,19 @@ 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"
WEBUSER=$(ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}')
PWD=`pwd`

#chmod -R 777 *
#chown -R $WEBUSER *
#ls -altr /home/runner/work/cacti/cacti/cli/../include/cli_check.php
#--------------------------------------------------------------------------------
# Empty the Cacti log before beginning
#--------------------------------------------------------------------------------
> log/cacti.log

FAILED=0
HEADER="#!/usr/bin/env php"

echo "Current User is: $(whoami)"
echo "Web User is: ${WEBUSER}"
echo "Working Directory: ${PWD}"

for script in $FILES1 $FILES2 $FILES3; do
script_output=""
Expand Down

0 comments on commit 845e713

Please sign in to comment.