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-05 21:27:48 +01:00
|
|
|
if [ "$1" == "prepare" ]
|
|
|
|
then
|
|
|
|
echo "Preparing your system for the first run"
|
|
|
|
apt update -y && apt upgrade -y
|
|
|
|
apt install python3.7 python3-pip -y
|
|
|
|
pip3 install setuptools wheel regex
|
2020-03-05 22:31:40 +01:00
|
|
|
cd $DIR
|
2020-03-05 21:27:48 +01:00
|
|
|
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
|
2020-03-05 22:31:40 +01:00
|
|
|
cd $DIR
|
2020-03-05 21:27:48 +01:00
|
|
|
python3 main.py "$@"
|
2020-03-05 22:31:40 +01:00
|
|
|
fi
|