b09431877e
Update requirements.txt Update wording
21 lines
506 B
Bash
Executable File
21 lines
506 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $EUID -ne 0 ]]; then
|
|
echo "This script must be run as root"
|
|
exit 1
|
|
fi
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
cd "$DIR" || exit
|
|
FILE=./your_system_information.txt
|
|
|
|
if [ ! -f "$FILE" ]; then
|
|
echo "Preparing your system for the first run"
|
|
apt-get update -y && apt-get upgrade -y
|
|
apt-get install curl screenfetch python3.7 python3-pip -y
|
|
pip3 install -r requirements.txt
|
|
python3 main.py helloworld
|
|
else
|
|
python3 main.py "$@"
|
|
fi
|