Skip to content

Commit

Permalink
Merge pull request #688 from six2dez/dev
Browse files Browse the repository at this point in the history
Python3.10 requirement
  • Loading branch information
six2dez authored Apr 26, 2023
2 parents 0381a1b + 72c6fef commit 4afe0b4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ function banner_web(){

install_webserver(){
printf "${bblue} Running: Installing web reconftw ${reset}\n\n"

ver=$(python3 -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]\).*/\1\2/')
if [ "$ver" -lt "31" ]; then
echo "The web interface requires python 3.10 or greater"
exit 1
fi

printf "${yellow} Installing python libraries...${reset}\n\n"

# Install venv
Expand Down
7 changes: 7 additions & 0 deletions reconftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2822,6 +2822,13 @@ function help(){

function webserver(){
printf "${bgreen} Web Interface by @lur1el, @d3vchac, @mx61tt and @dd4n1b0y ${reset}\n"
ver=$(python3 -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]\).*/\1\2/')

if [ "$ver" -lt "31" ]; then
echo "The web interface requires python 3.10 or greater"
exit 1
fi

if [ "$1" == "start" ]; then
ipAddress=$(hostname -I | cut -d ' ' -f1 | sed -e 's/ //')

Expand Down

0 comments on commit 4afe0b4

Please sign in to comment.