git-svn-id: https://svn.osgeo.org/grass/grass/trunk@39949 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -65,6 +65,12 @@ esac
GIS_LOCK=$$
export GIS_LOCK
+# Set the config subdir
+if [ ! "$GRASS_CONFIG_DIR" ] ; then
+ GRASS_CONFIG_DIR=@GRASS_CONFIG_DIR@
+ export $GRASS_CONFIG_DIR
+fi
+
# Set the global grassrc file
if [ -n "$GRASS_BATCH_JOB" ] ; then
GISRCRC="$HOME/$GRASS_CONFIG_DIR/rc.`uname -n`"