2020-03-05 21:27:48 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-03-05 22:31:40 +01:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
2020-03-21 04:11:01 +01:00
|
|
|
cd "$DIR" || exit
|
|
|
|
FILE=./your_system_information.txt
|
2020-03-05 22:31:40 +01:00
|
|
|
|
2020-03-21 04:11:01 +01:00
|
|
|
if [ ! -f "$FILE" ]; then
|
2020-03-05 21:27:48 +01:00
|
|
|
echo "Preparing your system for the first run"
|
2020-03-21 02:07:42 +01:00
|
|
|
apt-get update -y && apt-get upgrade -y
|
2020-03-21 04:11:01 +01:00
|
|
|
apt-get install curl screenfetch python3.7 python3-pip -y
|
2020-03-05 21:27:48 +01:00
|
|
|
pip3 install setuptools wheel regex
|
|
|
|
pip3 install -r requirements.txt
|
2020-03-06 03:05:30 +01:00
|
|
|
python3 main.py helloworld
|
2020-03-05 21:27:48 +01:00
|
|
|
else
|
|
|
|
python3 main.py "$@"
|
2020-03-05 22:31:40 +01:00
|
|
|
fi
|