diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-12 18:09:34 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-12 18:09:34 +0000 |
| commit | 3dd230e00ab5638d57a6072260d1a1dc745e8ad0 (patch) | |
| tree | cf3ff88fc89d5d990baed7dbf79ac5bfab123c92 /tools | |
| parent | 1a7aa506cf7c239890fab96fd024640b1b712eb8 (diff) | |
| download | boca-3dd230e00ab5638d57a6072260d1a1dc745e8ad0.tar.gz boca-3dd230e00ab5638d57a6072260d1a1dc745e8ad0.zip | |
change of name
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/cron-logroot.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/cron-logroot.sh b/tools/cron-logroot.sh index 217c92f..3f8d4a4 100644 --- a/tools/cron-logroot.sh +++ b/tools/cron-logroot.sh @@ -31,7 +31,7 @@ if [ "$res" != "0" ]; then fi done temp=/root/.temp.`date +%s%N`.txt - md=`wget --no-check-certificate -t 2 -T 5 -S https://$BOCASERVER/boca/logroot.php -O /dev/null --save-cookies ${temp}.cookie.txt --keep-session-cookies 2>&1 | grep PHPSESS | tail -n1` + md=`wget --no-check-certificate -t 2 -T 5 -S https://$BOCASERVER/boca/logexternal.php -O /dev/null --save-cookies ${temp}.cookie.txt --keep-session-cookies 2>&1 | grep PHPSESS | tail -n1` echo "$md" | grep -q PHPSESS if [ "$?" == "0" ]; then md=`echo $md | cut -f2 -d'=' | cut -f1 -d';'` @@ -43,7 +43,7 @@ if [ "$res" != "0" ]; then echo -n "&data=" >> $temp uuencode -m zzzzzzzzzz < /root/.logroot.diff | grep -v "begin-base64.*zzzzzzzzzz" | perl -MURI::Escape -lne 'print uri_escape($_)' >> $temp - wget --no-check-certificate -t 2 -T 5 "https://$BOCASERVER/boca/logroot.php" --load-cookies ${temp}.cookie.txt --keep-session-cookies --save-cookies ${temp}.cookie.txt -O ${temp}.out --post-file=$temp >/dev/null 2>/dev/null + wget --no-check-certificate -t 2 -T 5 "https://$BOCASERVER/boca/logexternal.php" --load-cookies ${temp}.cookie.txt --keep-session-cookies --save-cookies ${temp}.cookie.txt -O ${temp}.out --post-file=$temp >/dev/null 2>/dev/null rm -f $temp rm -f ${temp}.cookie.txt grep -qi incorrect ${temp}.out |