#!/bin/sh #------------------------------------------------------------------------ # change init.d RunUser changeInitRunUser() { NewUser=$1 InitFile=`getInitScriptLocation` if [ -f $InitFile ] then editFile $InitFile FBRunUser "FBRunUser=$NewUser" chmod u=rwx,g=rx,o= $InitFile fi } #------------------------------------------------------------------------ # installInitdScript # Everbody stores this one in a seperate location, so there is a bit of # running around to actually get it for each packager. # Update rcX.d with Firebird initd entries # initd script for SuSE >= 7.2 is a part of RPM package installInitdScript() { srcScript="" initScript= # This is for RH and MDK specific if [ -e /etc/rc.d/init.d/functions ] then srcScript=firebird.init.d.mandrake initScript=/etc/rc.d/init.d/firebird # SuSE specific elif [ -r /etc/SuSE-release ] then srcScript=firebird.init.d.suse initScript=/etc/init.d/firebird rm -f /usr/sbin/rcfirebird ln -s ../../etc/init.d/firebird /usr/sbin/rcfirebird # Debian specific elif [ -r /etc/debian_version ] then srcScript=firebird.init.d.debian initScript=/etc/init.d/firebird rm -f /usr/sbin/rcfirebird ln -s ../../etc/init.d/firebird /usr/sbin/rcfirebird # Slackware specific elif [ -r /etc/slackware-version ] then srcScript=firebird.init.d.slackware initScript=/etc/rc.d/rc.firebird rclocal=/etc/rc.d/rc.local if ! grep -q "$initScript" $rclocal then cat >>$rclocal <