|
Lines 3-21
Link Here
|
| 3 |
PATH=/usr/sbin:/usr/bin:/sbin:/bin |
3 |
PATH=/usr/sbin:/usr/bin:/sbin:/bin |
| 4 |
|
4 |
|
| 5 |
@!@ |
5 |
@!@ |
| 6 |
disabled = '' |
6 |
disabled = '' if configRegistry.is_true('update/check/cron/enabled') else '#' |
| 7 |
debug = '' |
7 |
debug = '' if configRegistry.is_true('update/check/cron/debug') else '2>/dev/null' |
| 8 |
if not configRegistry.is_true('update/check/cron/enabled', False): |
|
|
| 9 |
disabled = '# ' |
| 10 |
if not configRegistry.get('update/check/cron/debug','no').lower() in ('yes','true','enabled','1','2','3','4'): |
| 11 |
debug = '2> /dev/null > /dev/null' |
| 12 |
print '%s%s root [ -x /usr/share/univention-updater/univention-updater-check ] && /usr/sbin/jitter 600 /usr/share/univention-updater/univention-updater-check %s' % (disabled, configRegistry.get('update/check/cron/entry', '5 * * * *'), debug) |
8 |
print '%s%s root [ -x /usr/share/univention-updater/univention-updater-check ] && /usr/sbin/jitter 600 /usr/share/univention-updater/univention-updater-check %s' % (disabled, configRegistry.get('update/check/cron/entry', '5 * * * *'), debug) |
| 13 |
|
9 |
|
| 14 |
disabled = '' |
10 |
disabled = '' if configRegistry.is_true('update/check/boot/enabled') else '#' |
| 15 |
debug = '' |
11 |
debug = '' if configRegistry.is_true('update/check/boot/debug') else '2>/dev/null' |
| 16 |
if not configRegistry.is_true('update/check/boot/enabled', False): |
|
|
| 17 |
disabled = '# ' |
| 18 |
if not configRegistry.get('update/check/boot/debug','no').lower() in ('yes','true','enabled','1','2','3','4'): |
| 19 |
debug = '2> /dev/null > /dev/null' |
| 20 |
print '%s@reboot root [ -x /usr/share/univention-updater/univention-updater-check ] && /usr/sbin/jitter 30 /usr/share/univention-updater/univention-updater-check %s' % (disabled, debug) |
12 |
print '%s@reboot root [ -x /usr/share/univention-updater/univention-updater-check ] && /usr/sbin/jitter 30 /usr/share/univention-updater/univention-updater-check %s' % (disabled, debug) |
| 21 |
@!@ |
13 |
@!@ |