CNSA-276-FP/install.sh
2024-05-06 23:18:45 -04:00

18 lines
443 B
Bash

#!/bin/sh
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update
sudo apt-get install python3-psycopg2 -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 -
git clone https://gitea.eggtech.net/eggman20339/CNSA-276-FP.git /CNSA/CNSA-276-FP/
echo "Installation Complete! Rebooting..."
sleep 2
sudo reboot 0