Subject SSChangeRunUser ...
Author Pirtea Calin Iancu
I've noticed that all SSChange... start with
the premise that firebird is located in
/etc/rc.d/init.d/

I use SUSE 7.3 and the location is /etc/init.d/

1. Is there a way to ask the OS where is this init.c supposed to be
in order to change all SSChange... scripts to use the correct location?

Currently i added a variable InitFile at begining of these scripts for
ease of change but i don't know if this location (/etc/init.d/) is corect
for RedHat for example

2. The script SSchangeRunUser uses
ed $InitFile <<EOF
/FBRunUser:=/s/FBRunUser:=.*\}/FBRunUser:=$NewUser\}/g
this gives an error (a ?) on SUSE7.3 as if ed does not understand
some part of the s command and seccond there are no := in the
scripts (part of the problem is locate fails and seccond
seems to be \} )

so i changed it to
ed $InitFile <<EOF
/FBRunUser=/s/.*/FBRunUser=$NewUser

and it works

Any thoughts? (please)


Best regards,
Application Developer
Pirtea Calin Iancu
S.C. SoftScape S.R.L.
pcalin@...