2 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
3 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
5 # Filename: lib/init/install_cron.in
6 # Copyright (C) 2008 The OpenSDE Project
7 # Copyright (C) 2004 - 2006 The T2 SDE Project
9 # More information can be found in the files COPYING and README.
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; version 2 of the License. A copy of the
14 # GNU General Public License can be found in the file COPYING.
15 # --- SDE-COPYRIGHT-NOTE-END ---
18 # TODO: somehow determine if it wants cron.daily or another level //mnemoc
19 local file="$1" crondir
=etc
/cron.daily
20 local cfile
=${file##*/}; cfile
=${cfile%.cron}
22 echo "Installing $cfile into $crondir ..."
23 rock_substitute
$file > $root/$crondir/$cfile
24 chmod +x
$root/$crondir/$cfile
27 for y
in $
( ls -1 $confdir/*.cron
2> /dev
/null
); do
28 hook_add postinstall
6 "install_cron '$y'"