CNSA-276-FP/install.sh

21 lines
527 B
Bash
Raw Normal View History

2024-05-06 20:18:45 -07:00
#!/bin/sh
sudo apt-get update
2024-05-06 20:42:02 -07:00
sudo apt-get upgrade -y
2024-05-06 20:18:45 -07:00
sudo apt-get update
sudo apt-get install python3-psycopg2 -y
2024-05-06 20:42:02 -07:00
sudo apt-get install screen -y
2024-05-06 20:18:45 -07:00
# Define your job
JOB="@reboot /bin/sh /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 -
2024-05-06 20:56:05 -07:00
sudo git clone https://gitea.eggtech.net/eggman20339/CNSA-276-FP.git /CNSA/CNSA-276-FP/
2024-05-06 20:18:45 -07:00
2024-05-06 20:35:33 -07:00
sudo chmod 777 /CNSA/CNSA-276-FP/startup.sh
2024-05-06 20:18:45 -07:00
echo "Installation Complete! Rebooting..."
sleep 2
sudo reboot 0