[Devel] rc file naming inconsistency
Daniel-Constantin Mierla
daniel at voice-system.ro
Mon Jul 10 23:08:54 CEST 2006
Hello,
On 07/10/06 23:52, Juha Heinanen wrote:
> sorry to notice so late, but naming of rc files is inconsistent. in
> openserctl we have:
>
> ### include resource files, if any
> if [ -f /usr/local/etc/openser/openserctlrc ]; then
> . /usr/local/etc/openser/openserctlrc
> fi
> if [ -f ~/.openserctlrc ]; then
> . ~/.openserctlrc
> fi
>
> and in mysqldb.sh:
>
> # include resource files, if any
> if [ -f /etc/openser/.opensermysqlrc ]; then
> . /etc/openser/.opensermysqlrc
> fi
> if [ -f /usr/local/etc/openser/.opensermysqlrc ]; then
> . /usr/local/etc/openser/.opensermysqlrc
> fi
> if [ -f ~/.opensermysqlrc ]; then
> . ~/.opensermysqlrc
> fi
>
>
'.opensermysqlrc' was there from beginning. openser_mysql.sh does not install the resource file as openserctl does. The plan is to merge openser_mysql.sh with openserctl and have same resource file. Unfortunately, the differences between mysql and postgres regarding database creation were quite big and the time didn't allow it to finish for this release.
openserctlrc hast to be edited right now to get desired behavior, no database support being installed by default.
> openserctl should also search rc file from /etc/openser directory and
> .opensermysqlrc should be without leading . char.
>
At the installation time '/usr/local' is replaced with the prefix under
which openser is installed - the right path to the resource file should
be there after installation, even when you install in custom path, like
'/tmp/openser'.
Cheers,
Daniel
> -- juha
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>
>
More information about the Devel
mailing list