Skip to content

Commit e99a408

Browse files
authored
Minor bug fix.
Postgreql check wasn't working, i authored an alternative. Secondly, i decided to have PyCurl install via apt-get instead of PIP, since PIP sometimes has issues getting PyCurl set up properly for some reason.
1 parent 241e3db commit e99a408

1 file changed

Lines changed: 9 additions & 14 deletions

File tree

intrec.sh

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ function mimir_install()
245245
notification "Installing dependencies."
246246
sleep 1.5
247247

248-
sudo pip install selenium blessings ipwhois pycurl
249-
248+
sudo pip install selenium blessings ipwhois
249+
sudo apt-get install python-pycurl
250250
notification "Checking PyCurl for OpenSSL support..."
251251
sleep 1.5
252252

@@ -376,23 +376,17 @@ function BirdWatcher()
376376
notification "Checking to see if PostgreSQL is installed."
377377
sleep 1
378378

379-
check=$(ps -ef | grep postgre)
380-
case $check in
381-
*/usr/lib/postgresql/*)
382-
pgres=1
383-
;;
384-
esac
385-
386-
if [[ $pgres == 1 ]]; then
387-
notification "Hueristics indicate PostgreSQL is already installed."
388-
else
379+
sudo service postgresql status > /dev/null || $check='failed'
380+
if [[ $check == 'failed' ]]; then
389381
notification "Installing PostgreSQL..."
390382
sleep 1
391383

392384
sudo apt-get install postgresql
393385
sudo apt-get install libpq-dev
394386

395387
notification "Operation completed."
388+
else
389+
notification "Hueristics indicate PostgreSQL is already installed."
396390

397391
fi
398392

@@ -505,7 +499,8 @@ function pyparser()
505499
git clone https://github.com/NullArray/PyParser-CVE.git
506500
notification "Installing dependencies."
507501
sleep 1
508-
sudo pip install blessings shodan pycurl
502+
sudo pip install blessings shodan
503+
sudo apt-get install python-pycurl
509504
notification "PyParser-CVE was successfully installed."
510505
fi
511506
}
@@ -626,7 +621,7 @@ function list()
626621
printf "%b \n"
627622
;;
628623
"Spiderfoot")
629-
Spiderfoot
624+
Spiderfoot
630625
tools
631626
printf "%b \n"
632627
;;

0 commit comments

Comments
 (0)