UNPKG

907 Bapplication/x-shView Raw
1#!/usr/bin/env bash
2
3# run using: source install_yottadb_only.sh
4
5# Acknowledgement: KS Bhaskar for YottaDB installation logic
6
7# run as normal user, eg ubuntu
8
9 gtmroot=/usr/lib/yottadb
10 gtmcurrent=$gtmroot/current
11
12 echo 'Configuring YottaDB'
13
14 gtmprof=$gtmcurrent/gtmprofile
15 gtmprofcmd="sh $gtmprof"
16 $gtmprofcmd
17 tmpfile=`mktemp`
18 if [ `grep -v "$gtmprofcmd" ~/.profile | grep $gtmroot >$tmpfile`] ; then
19 echo "Warning: existing commands referencing $gtmroot in ~/.profile may interfere with setting up environment"
20 cat $tmpfile
21 fi
22
23 echo 'copying ' $gtmprofcmd ' to profile...'
24 echo $gtmprofcmd >> ~/.profile
25
26 rm $tmpfile
27 unset tmpfile gtmprofcmd gtmprof gtmcurrent gtmroot
28
29 echo 'YottaDB has been installed and configured, ready for use'
30 echo 'Enter the YottaDB shell by typing the command: gtm Exit it by typing the command H'
31
32 cd ~
33