automated yes no
This commit is contained in:
parent
4da5af7492
commit
0af87b62b0
@ -1,10 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo apt install unzip
|
sudo apt update && sudo apt -y upgrade
|
||||||
|
sudo apt -y install unzip
|
||||||
sudo rm -rf /home/$USER/aped
|
sudo rm -rf /home/$USER/aped
|
||||||
unzip app.zip -d /home/$USER/aped
|
unzip app.zip -d /home/$USER/aped
|
||||||
cp /home/$USER/aped/XML/default.xml /home/$USER/aped/XML/config.xml
|
cp /home/$USER/aped/XML/default.xml /home/$USER/aped/XML/config.xml
|
||||||
sudo apt install python3 python3-pip python3-lxml
|
sudo apt -y install python3 python3-pip python3-lxml
|
||||||
sudo pip3 install Flask Flask-API RPi.GPIO lxml
|
sudo pip3 -y install Flask Flask-API RPi.GPIO lxml
|
||||||
touch /tmp/aped
|
touch /tmp/aped
|
||||||
echo "@reboot root python3 /home/$USER/aped/app.py" > /tmp/aped
|
echo "@reboot root python3 /home/$USER/aped/app.py" > /tmp/aped
|
||||||
sudo mv /tmp/aped /etc/cron.d/aped
|
sudo mv /tmp/aped /etc/cron.d/aped
|
||||||
|
Loading…
x
Reference in New Issue
Block a user