mirror of
https://github.com/myvesta/vesta
synced 2025-07-12 16:13:34 -07:00
15 lines
271 B
Bash
Executable file
15 lines
271 B
Bash
Executable file
#!/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
|
|
|