Why are you putting sudo in the install script and then telling the user not to run with elevated permissions?
Here, I fixed some things for the project.
#!/usr/bin/env bash
RED='\e[0;31m' # Red
export RED
GREEN='\e[0;32m' # Green
export GREEN
BLUE='\e[0;34m' # Blue
export BLUE
NC='\e[m' # Color Reset
export NC
if [ "$UID" == 0 ]; then
bash -c "python -m pip install -r requirements.txt"
bash -c "python -m playwright install"
echo -e "${BLUE}[+]${GREEN} Installation is finished. You can run 'run.sh' file now.${NC}"
else
echo -e "${RED}[-]Install Error, Check if you have the latest python and pip installed, then run this install file again with sudo${NC}"
exit
fi
and run.sh
#!/usr/bin/env bash
echo -e "Moriarty Project Remastered V4.1.1"
echo -e "Github:https://github.com/AzizKpln/Moriarty-Project"
echo -e "Linkedin:https://www.linkedin.com/in/aziz-k-074604170/\n"
echo -e "Project is currently running. If your browser not showing up,"
echo -e "Please go to this link: http://127.0.0.1:8080\n"
echo -e "Press CTRL+C to kill the webserver."
bash startBrowser.sh &
bash -c "python3 MoriartyProject.py"
Why are you putting sudo in the install script and then telling the user not to run with elevated permissions? Here, I fixed some things for the project.
and run.sh