From 22a481e11609597bd0c797b5f6a616a53fe9bb86 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Mon, 24 Jan 2022 18:41:13 -0500 Subject: [PATCH] handling new crontabs --- scripts/uninstall.sh | 4 +--- scripts/update_birdnet.sh | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh index 2f03c7a..fa5d0e0 100755 --- a/scripts/uninstall.sh +++ b/scripts/uninstall.sh @@ -26,9 +26,7 @@ remove_services() { } remove_crons() { - TMPFILE=$(mktemp) - crontab -l | sed -e '/birdnet/,+1d' > "${TMPFILE}" - crontab "${TMPFILE}" + sed -e '/birdnet/,+1d' /etc/crontab } remove_icecast() { diff --git a/scripts/update_birdnet.sh b/scripts/update_birdnet.sh index 7a33523..6b0127b 100755 --- a/scripts/update_birdnet.sh +++ b/scripts/update_birdnet.sh @@ -28,8 +28,7 @@ remove_services() { } remove_crons() { - crontab -u${USER} -l | sed -e '/birdnet/,+1d' > "${tmpfile}" - crontab -u${USER} "${tmpfile}" + sed -e '/birdnet/,+1d' /etc/crontab } remove_icecast() {