CNSA-276-FP/install.sh
2024-05-07 00:00:51 -04:00

25 lines
566 B
Bash

#!/bin/sh
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get update
sudo apt-get install python3-psycopg2 -y
sudo apt-get install screen -y
# 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 -
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
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Installation Complete! Rebooting..."
sleep 5
sudo reboot 0