Add Makefile

This commit is contained in:
git 2025-08-10 18:11:48 +01:00
commit d925bad71f

18
Makefile Normal file
View File

@ -0,0 +1,18 @@
SHELL=/bin/bash
run-script:
# run the main script
main.sh
install:
# Add entry in crontab
# The cron job you want to add
NEW_CRON="0 3 * * * $(shell pwd)/main.sh"
# Check if it already exists (to avoid duplicates)
( crontab -l 2>/dev/null | grep -F "$NEW_CRON" ) && echo "Cron already exists." && exit 0
# Add the new cron safely
( crontab -l 2>/dev/null; echo "$NEW_CRON" ) | crontab -
requirements:
# Add the necessary packages
apt-get -y install miniupnpc gawk