handling new crontabs

This commit is contained in:
mcguirepr89
2022-01-24 18:41:13 -05:00
parent cebcff5768
commit 22a481e116
2 changed files with 2 additions and 5 deletions
+1 -3
View File
@@ -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() {
+1 -2
View File
@@ -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() {