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.
24 lines
713 B
24 lines
713 B
#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc |
|
## |
|
## rc.heise -- Run-Commands |
|
## |
|
|
|
%config |
|
heise_enable="$openpkg_rc_def" |
|
heise_idx_numfiles="10" |
|
heise_idx_complevel="9" |
|
heise_url="ftp://ftp.heise.de/pub/ct/register/register.zip" |
|
|
|
%weekly -u @l_musr@ |
|
rcService heise enable yes || exit 0 |
|
|
|
# fetch new index data |
|
( cd @l_prefix@/var/heise \ |
|
&& @l_prefix@/bin/curl -s -o register.zip ${heise_url} \ |
|
&& @l_prefix@/bin/shtool rotate -f \ |
|
-n ${heise_idx_numfiles} -s 0 \ |
|
-z ${heise_idx_complevel} -o @l_musr@ -g @l_mgrp@ -m 644 \ |
|
inhalt.frm \ |
|
&& @l_prefix@/bin/unzip -jop register.zip INHALT.FRM >inhalt.frm |
|
) |
|
|
|
|