Skip to content

reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Update install_webserver

DaniBoy0249baad3858
diff --git a/install.sh b/install.sh
index 0b4d7a5..3c46576 100755
--- a/install.sh
+++ b/install.sh
@@ -142,10 +142,10 @@ install_webserver(){
printf "${yellow} python virtualenv install...${reset}\n\n"
$SUDO rm -rf /web/.venv/
$SUDO pip3 install virtualenv &>/dev/null
- $SUDO virtualenv $HOME/reconftw/web/.venv/ &>/dev/null
+ $SUDO virtualenv web/.venv/ &>/dev/null
if [ $? -eq 0 ]; then
printf "${yellow} Activating virtualenv...${reset}\n\n"
- $SUDO source $HOME/reconftw/web/.venv/bin/activate
+ $SUDO source web/.venv/bin/activate
$SUDO pip3 install --upgrade pip &>/dev/null
else
printf '[ERROR] Failed to create virtualenv. Please install requirements mentioned in Documentation.'
@@ -153,7 +153,7 @@ install_webserver(){
fi
printf "${yellow} Installing Requirements...${reset}\n\n"
- $SUDO pip3 install -r $HOME/reconftw/web/requirements.txt &>/dev/null
+ $SUDO pip3 install -r $SCRIPTPATH/web/requirements.txt &>/dev/null
@@ -188,10 +188,10 @@ install_webserver(){
#$SUDO su postgres -c "psql -c \"GRANT ALL PRIVILEGES ON DATABASE web TO $DBUser;\""
printf "${yellow} Creating WEB User...${reset}\n\n"
- $SUDO rm $HOME/reconftw/web/db.sqlite3 &>/dev/null
- $SUDO python3 $HOME/reconftw/web/manage.py makemigrations &>/dev/null
- $SUDO python3 $HOME/reconftw/web/manage.py migrate &>/dev/null
- $SUDO python3 $HOME/reconftw/web/manage.py createsuperuser
+ $SUDO rm $SCRIPTPATH/web/db.sqlite3
+ $SUDO python3 $SCRIPTPATH/web/manage.py makemigrations &>/dev/null
+ $SUDO python3 $SCRIPTPATH/web/manage.py migrate &>/dev/null
+ $SUDO python3 $SCRIPTPATH/web/manage.py createsuperuser
}