handling new crontabs
This commit is contained in:
@@ -26,9 +26,7 @@ remove_services() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
remove_crons() {
|
remove_crons() {
|
||||||
TMPFILE=$(mktemp)
|
sed -e '/birdnet/,+1d' /etc/crontab
|
||||||
crontab -l | sed -e '/birdnet/,+1d' > "${TMPFILE}"
|
|
||||||
crontab "${TMPFILE}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_icecast() {
|
remove_icecast() {
|
||||||
|
|||||||
@@ -28,8 +28,7 @@ remove_services() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
remove_crons() {
|
remove_crons() {
|
||||||
crontab -u${USER} -l | sed -e '/birdnet/,+1d' > "${tmpfile}"
|
sed -e '/birdnet/,+1d' /etc/crontab
|
||||||
crontab -u${USER} "${tmpfile}"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_icecast() {
|
remove_icecast() {
|
||||||
|
|||||||
Reference in New Issue
Block a user