mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
crontab fixer
This commit is contained in:
parent
ef11c375b9
commit
8cdfe2b15c
1 changed files with 15 additions and 0 deletions
15
upd/fix_cron.sh
Executable file
15
upd/fix_cron.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Check if there is no crontab
|
||||
if [ ! -e "/var/spool/cron" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
# Fix ownership and permissions
|
||||
for crn_tab in $(ls /var/spool/cron/); do
|
||||
chown $crn_tab:$crn_tab /var/spool/cron/$crn_tab
|
||||
chmod 600 /var/spool/cron/$crn_tab
|
||||
done
|
||||
|
||||
exit
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue