You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
294 B
18 lines
294 B
10 months ago
|
#!/bin/sh
|
||
|
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
||
|
|
||
|
t_Log "Running $0 - crontab will run weekly jobs"
|
||
|
|
||
|
# Add a test cron
|
||
|
cat > /etc/cron.weekly/test.sh<<EOF
|
||
|
#!/bin/sh
|
||
|
echo 'test'
|
||
|
EOF
|
||
|
|
||
|
chmod +x /etc/cron.weekly/test.sh
|
||
|
|
||
|
run-parts /etc/cron.weekly | grep -q "test"
|
||
|
|
||
|
|
||
|
t_CheckExitStatus $?
|