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() {