From bd69ea7ed9efeb6b40eba47ad19548296f76d525 Mon Sep 17 00:00:00 2001 From: EggMan20339 <99349302+EggMan20339@users.noreply.github.com> Date: Tue, 7 May 2024 00:56:24 -0400 Subject: [PATCH] changed path --- install.sh | 8 +++++--- startup.sh | 14 +++++++------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index 9d34082..114125b 100644 --- a/install.sh +++ b/install.sh @@ -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 "" diff --git a/startup.sh b/startup.sh index 43776cd..c868b8b 100644 --- a/startup.sh +++ b/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" \ No newline at end of file +screen -dmS DoorAuth bash -c "cd /user/CNSA/CNSA-276-FP/ && python3 main.py" \ No newline at end of file