#!/bin/sh # --- T2-COPYRIGHT-NOTE-BEGIN --- # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # T2 SDE: misc/tail/install_postinstall.in # Copyright (C) 2004 - 2005 The T2 SDE Project # # More information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. A copy of the # GNU General Public License can be found in the file COPYING. # --- T2-COPYRIGHT-NOTE-END --- tail_postinstall_wrapper=sde_substitute auto_install_postinstall() { local pitpl= pidir=$root/etc/postinstall.d for pitpl in $( cd $confdir; ls -1 *.postinstall 2> /dev/null ); do echo "Installing ${pitpl%.postinstall} postinstall script..." eval "cat $confdir/$pitpl | \ ${tail_postinstall_wrapper//|/ | } \ > $pidir/${pitpl%.postinstall}" chmod +x $pidir/${pitpl%.postinstall} done } hook_add postinstall 4 'auto_install_postinstall'