#!/bin/sh # --- T2-COPYRIGHT-BEGIN --- # t2/misc/tail/install_cron.in # Copyright (C) 2004 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- install_cron() { # TODO: somehow determine if it wants cron.daily or another level local file="$1" crondir=etc/cron.daily local cfile=${file##*/}; cfile=${cfile%.cron} echo "Installing $cfile into $crondir ..." sde_substitute $file > $root/$crondir/$cfile chmod +x $root/$crondir/$cfile } for y in $( ls -1 $confdir/*.cron 2> /dev/null ); do hook_add postinstall 6 "install_cron '$y'" done