handling new crontabs
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user