0
Fork 0
mirror of https://github.com/netweak/agent.git synced 2024-12-16 21:46:58 -05:00

Rename branch to main

This commit is contained in:
Lucas Decrock 2024-01-11 11:45:42 +01:00
parent 8eeeaf7f44
commit 19ad94b82f

View file

@ -119,7 +119,7 @@ mkdir -p /etc/netweak
mkdir -p /etc/netweak/log mkdir -p /etc/netweak/log
# Download agent # Download agent
echo -e "| Downloading agent.sh to /etc/netweak\n|\n| + $(curl -JLso /etc/netweak/agent.sh https://github.com/netweak/agent/raw/master/agent.sh)" echo -e "| Downloading agent.sh to /etc/netweak\n|\n| + $(curl -JLso /etc/netweak/agent.sh https://github.com/netweak/agent/raw/main/agent.sh)"
if [ -f /etc/netweak/agent.sh ] if [ -f /etc/netweak/agent.sh ]
then then
@ -136,6 +136,7 @@ then
chmod +s `type -p ping` chmod +s `type -p ping`
# Configure cron # Configure cron
crontab -u netweak -l 2>/dev/null | { cat; echo "* * * * * bash /etc/netweak/heartbeat.sh > /etc/netweak/log/cron.log 2>&1"; } | crontab -u netweak -
crontab -u netweak -l 2>/dev/null | { cat; echo "* * * * * bash /etc/netweak/agent.sh > /etc/netweak/log/cron.log 2>&1"; } | crontab -u netweak - crontab -u netweak -l 2>/dev/null | { cat; echo "* * * * * bash /etc/netweak/agent.sh > /etc/netweak/log/cron.log 2>&1"; } | crontab -u netweak -
# Show success # Show success