From d925bad71f62576a2239699935aaf435d9b5bdd1 Mon Sep 17 00:00:00 2001 From: git Date: Sun, 10 Aug 2025 18:11:48 +0100 Subject: [PATCH] Add Makefile --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b7c1c96 --- /dev/null +++ b/Makefile @@ -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