changed path
This commit is contained in:
parent
b8793dd0b9
commit
bd69ea7ed9
@ -7,15 +7,17 @@ sudo apt-get install python3-psycopg2 -y
|
||||
sudo apt-get install python3-fido2 -y
|
||||
sudo apt-get install screen -y
|
||||
|
||||
sudo mkdir /user/CNSA
|
||||
|
||||
# Define your job
|
||||
JOB="@reboot /bin/sh /CNSA/CNSA-276-FP/startup.sh"
|
||||
JOB="@reboot /bin/sh /user/CNSA/CNSA-276-FP/startup.sh"
|
||||
|
||||
# Check if the job is already in the crontab and add it if it's not
|
||||
( crontab -l | grep -F "$JOB" || echo "$JOB" ) | crontab -
|
||||
|
||||
sudo git clone https://gitea.eggtech.net/eggman20339/CNSA-276-FP.git /CNSA/CNSA-276-FP
|
||||
sudo git clone https://gitea.eggtech.net/eggman20339/CNSA-276-FP.git /user/CNSA/CNSA-276-FP
|
||||
|
||||
sudo chmod 777 /CNSA/CNSA-276-FP/startup.sh
|
||||
sudo chmod 777 /user/CNSA/CNSA-276-FP/startup.sh
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
|
14
startup.sh
14
startup.sh
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
sudo cp /CNSA/CNSA-276-FP/config.ini /config.bak
|
||||
sudo rm -R /CNSA/CNSA-276-FP
|
||||
sudo cp /user/CNSA/CNSA-276-FP/config.ini /config.bak
|
||||
sudo rm -R /user/CNSA/CNSA-276-FP
|
||||
|
||||
|
||||
|
||||
@ -21,10 +21,10 @@ echo "Internet connection established. Running the portion of the script that re
|
||||
|
||||
# Add your code here that requires an internet connection
|
||||
|
||||
sudo mkdir /CNSA/CNSA-276-FP/
|
||||
sudo git clone https://gitea.eggtech.net/eggman20339/CNSA-276-FP.git /CNSA/CNSA-276-FP
|
||||
sudo chmod 777 /CNSA/CNSA-276-FP/startup.sh
|
||||
sudo mkdir /user/CNSA/CNSA-276-FP/
|
||||
sudo git clone https://gitea.eggtech.net/eggman20339/CNSA-276-FP.git /user/CNSA/CNSA-276-FP
|
||||
sudo chmod 777 /user/CNSA/CNSA-276-FP/startup.sh
|
||||
|
||||
sudo cp /config.bak /CNSA/CNSA-276-FP/config.ini
|
||||
sudo cp /config.bak /user/CNSA/CNSA-276-FP/config.ini
|
||||
|
||||
screen -dmS DoorAuth bash -c "cd /CNSA/CNSA-276-FP/ && python3 main.py"
|
||||
screen -dmS DoorAuth bash -c "cd /user/CNSA/CNSA-276-FP/ && python3 main.py"
|
Loading…
Reference in New Issue
Block a user