[GRASS-dev] [grass-code I][502] Grass 6.3 fails to apply database connection changes via db.connect

Moritz Lennert mlennert at club.worldonline.be
Fri Oct 5 10:11:28 EDT 2007

Replying to myself after rereading what I wrote:

On 05/10/07 16:02, Moritz Lennert wrote:
> But I don't see any conditioning around this, so IIUC driver and 
> database will always be set to dbf of the mapset at each startup. It 
> probably needs a test for the dbf directory around it. Something like 
> (not a bash expert):
> if [ ! -e  $GISDBASE/$LOCATION_NAME/$MAPSET/dbf/];
>   then
>    echo "DB_DRIVER: dbf" > "$LOCATION/VAR"
>    mkdir "$LOCATION"/dbf
> fi

No, this should be

    mkdir "$LOCATION"/dbf

And $LOCATION/VAR variables should only be preset to the dbf driver if 
for any reason it is empty, if at all.


More information about the grass-dev mailing list