Merge claude/1
This commit is contained in:
commit
9ef3247246
@ -1,8 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Function to remove all crontab data
|
# Function to remove all crontab data
|
||||||
crontabClear()
|
crontabClear()
|
||||||
{
|
{
|
||||||
echo "" | sudo -u $sudo_user_name crontab -
|
# Remove the install user's crontab as root so a stale spool file owned by
|
||||||
|
# a defunct UID is cleared too — e.g. after the EasyDocker -> LibrePortal
|
||||||
|
# user rename. The sticky bit on /var/spool/cron/crontabs otherwise stops
|
||||||
|
# the user replacing a file it doesn't own ("rename: Operation not
|
||||||
|
# permitted"); setup recreates the crontab as the user next.
|
||||||
|
sudo crontab -u "$sudo_user_name" -r 2>/dev/null
|
||||||
isSuccessful "All crontab data has been deleted."
|
isSuccessful "All crontab data has been deleted."
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user