summaryrefslogtreecommitdiffstats
path: root/src/main/swm/common/common.env
blob: e788212dfae2b03a4ba43c4fbb27da7decfcce39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export ROOT_DIR=${INSTALL_ROOT}opt/app/workload/fe3c/cambria

OS=`uname`

if [ "${OS}" = "SunOS" ]; then
    CURRENT_USER=`/usr/xpg4/bin/id -un`
    CURRENT_GROUP=`/usr/xpg4/bin/id -gn`
else
    CURRENT_USER=`id -un`
    CURRENT_GROUP=`id -gn`
fi

export CURRENT_USER CURRENT_GROUP

# Fail - used to quickly exit with a rc and error message
fail() {
    rc=$1
    shift;
    echo "ERROR: $@"
    exit $rc
}