[Devel] [ openser-Bugs-1617085 ] Solaris openser_mysql.sh script
error
SourceForge.net
noreply at sourceforge.net
Mon Dec 18 11:12:49 CET 2006
Bugs item #1617085, was opened at 2006-12-16 19:31
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1617085&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: ver devel
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Samwise (samwiseuk)
>Assigned to: Bogdan (bogdan_iancu)
Summary: Solaris openser_mysql.sh script error
Initial Comment:
The db_charset_test() function in:
/usr/local/sbin/openser_mysql.sh
does not work correctly with Solaris 9/04.
I think this will be true across other releases of Solaris as well because I think the script errors are due to the script not yet having been tested under Solaris.
I was able to get the database tables created by removing the E argument from grep on line 240:
ALLCHARSETS=`echo "show character set" | $CMD "-p$PW" | awk '{print $1}' | sed -e 1d | grep -iv
and by splitting the variable definition on line 252, over two lines:
CHARSET=$CURRCHARSET
export CHARSET
I'm not an expert shell scripter, though, and these were hacks I made rather than thoroughly understanding what the script was attempting to do.
This was discovered with the latest HEAD branch checked
out from CVS. This was not a problem with the rel_1_1_0 branch last time I checked it out, so it only affects the development version, AFAICT.
----------------------------------------------------------------------
>Comment By: Bogdan (bogdan_iancu)
Date: 2006-12-18 12:12
Message:
Logged In: YES
user_id=1275325
Originator: NO
Hi Sam,
thank for report - I removed the E param which is not supported by the
default grep on Soalris, but according to man, it is supported by
/usr/xpg4/bin/grep.
the export was removed as is was not really necessary.
let me know if there are any other issues.
regards,
bogdan
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1617085&group_id=139143
More information about the Devel
mailing list