fixed bug. indentation
This commit is contained in:
parent
6ca9c8e6e6
commit
a12ef0954f
18
Makefile
18
Makefile
@ -4,16 +4,16 @@ SHELL=/bin/bash
|
|||||||
NEW_CRON="0 3 * * * $(shell pwd)/main.sh"
|
NEW_CRON="0 3 * * * $(shell pwd)/main.sh"
|
||||||
|
|
||||||
run-script:
|
run-script:
|
||||||
# run the main script
|
# run the main script
|
||||||
main.sh
|
main.sh
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# Add entry in crontab
|
# Add entry in crontab
|
||||||
# Check if it already exists (to avoid duplicates)
|
# Check if it already exists (to avoid duplicates)
|
||||||
( crontab -l 2>/dev/null | grep -F "$(NEW_CRON)" ) && echo "Cron already exists." && exit 0
|
( crontab -l 2>/dev/null | grep -F "$(NEW_CRON)" ) && echo "Cron already exists." && exit 0
|
||||||
# Add the new cron safely
|
# Add the new cron safely
|
||||||
( crontab -l 2>/dev/null; echo "$(NEW_CRON)" ) | crontab -
|
( crontab -l 2>/dev/null; echo "$(NEW_CRON)" ) | crontab -
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
# Add the necessary packages
|
# Add the necessary packages
|
||||||
apt-get -y install gnumake miniupnpc gawk
|
apt-get -y install gnumake miniupnpc gawk
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user