Change Create Windows Task to main.py
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
## Ordner anlegen
|
||||
mkdir /root/REPORTS
|
||||
cd /root/REPORTS
|
||||
|
||||
## APT UPDATE
|
||||
apt update
|
||||
apt install python3-pip git -y
|
||||
|
||||
## Add GIT
|
||||
git init
|
||||
git remote add orgin https://gitlab.stines.de/sebastian.serfling/REPORTS.git
|
||||
git fetch
|
||||
git pull orgin main
|
||||
|
||||
## Install Python
|
||||
python3 -m pip install virtualenv
|
||||
python3 -m virtualenv venv
|
||||
source venv/bin/activate
|
||||
python3 -m pip install -r packages.txt
|
||||
python3 main.py
|
||||
deactivate
|
||||
Reference in New Issue
Block a user