This repository has been archived by the owner on Jun 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
env
43 lines (37 loc) · 1.48 KB
/
env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#################################################################
# #
# Copyright (c) 2018-2021 YottaDB LLC and/or its subsidiaries. #
# All rights reserved. #
# #
# This source code contains the intellectual property #
# of its copyright holder(s), and is made available #
# under a license. If you do not know the terms of #
# the license, please stop and do not read further. #
# #
#################################################################
mkdir -p /opt/yottadb/gui/g
mkdir -p /opt/yottadb/gui/j
mkdir -p /opt/yottadb/gui/log
mkdir -p /opt/yottadb/gui/tmp
dir="" chset=m
if [ "$1" = "utf-8" -o "$1" = "UTF-8" ]; then
dir=/utf8 chset=utf-8
fi
export USER=root
export ydb_dist=/opt/yottadb/current${dir}
export ydb_tmp=/opt/yottadb/gui/tmp
export ydb_routines="$ydb_dist/plugin/o${dir}/ydbgui.so $ydb_dist/plugin/o${dir}/ydbmwebserver.so $ydb_dist/plugin/o${dir}/_ydbmunit.so $ydb_dist/libyottadbutil.so"
export ydb_gbldir=/opt/yottadb/gui/g/database.gld
export ydb_log=/opt/yottadb/gui/log
export ydb_crypt_config=/opt/yottadb/gui/ydbgui.ydbcrypt
export ydb_chset=$chset
export ydb_icu_version=$(pkg-config --modversion icu-io)
if [ -f $ydb_dist/plugin/gtmcrypt/maskpass ]; then
export ydb_tls_passwd_ydbgui="$(echo ydbgui | $ydb_dist/plugin/gtmcrypt/maskpass | cut -d ":" -f2 | tr -d '[:space:]')"
fi
export ydb_lct_stdnull=1
if [ -f $HOME/.nvm/nvm.sh ]; then
. $HOME/.nvm/nvm.sh
fi
export PATH=$PATH:/opt/yottadb/current
unset dir chset