-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·193 lines (166 loc) · 3.98 KB
/
install.sh
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
#!/bin/sh
#
# $Id$
#
# Install Virtuoso Universal Server
#
# Copyright (C) 2007-2018 OpenLink Software
#
# The copyright above and this notice must be preserved in all
# copies of this source code. The copyright above does not
# evidence any actual or intended publication of this source code.
#
# This is unpublished proprietary trade secret of OpenLink Software.
# This source code may not be copied, disclosed, distributed, demonstrated
# or licensed except as authorized by OpenLink Software.
#
# To learn more about this product, or any other product in our
# portfolio, please check out our web site at:
#
# http://www.openlinksw.com
#
# or contact us at:
#
#
# If you have any technical questions, please contact our support
# staff at:
#
#
#
# Set up the script
#
umask 022
#
# Version info
#
VERSION=8.1
export VERSION
#
# Installation directory
#
VIRTUOSO_HOME=`pwd`
export VIRTUOSO_HOME
#
# Setup the PATH
#
PATH="$VIRTUOSO_HOME/bin:.:$PATH"
export PATH
#
# Test for -n or \c in echo command
#
if (echo "testing\c") | grep c >/dev/null; then
echo_n=-n
echo_c=
else
echo_n=
echo_c='\c'
fi
#
# Check whether to use uncompress or gunzip
#
UNZIP=uncompress
SUFFIX=Z
IFS="${IFS= }"; SAVE_IFS="$IFS"; IFS=":"
for dir in $PATH
do
if [ -x $dir/gunzip ]
then
UNZIP=$dir/gunzip
SUFFIX=gz
break
fi
done
IFS="$SAVE_IFS"
#
# Extract packages and run the installation scripts
#
if test -f universal-server.taz
then
echo ""
echo "- Extracting Virtuoso Universal Server v$VERSION"
cat universal-server.taz | $UNZIP -c | tar xf -
if test $? -ne 0
then
echo ""
echo "***"
echo "*** ERROR: could not extract files from package."
echo "***"
echo "*** Please correct the above errors before trying installation again"
echo "***"
exit 1
fi
echo ""
echo "- Checking where license file should be stored"
if test -d "$OPLMGR_LICENSE_DIR"
then
OPLMGR_LICENSE_DIR="$OPLMGR_LICENSE_DIR"
elif test -d "/Library/Application Support/OpenLink/Licenses"
then
OPLMGR_LICENSE_DIR="/Library/Application Support/OpenLink/Licenses"
elif test -d /etc/oplmgr
then
OPLMGR_LICENSE_DIR="/etc/oplmgr"
elif mkdir -p /etc/oplmgr 2>/dev/null
then
OPLMGR_LICENSE_DIR="/etc/oplmgr"
else
OPLMGR_LICENSE_DIR="$VIRTUOSO_HOME/bin/"
fi
export OPLMGR_LICENSE_DIR
echo "Please make sure all licenses are stored in: \"$OPLMGR_LICENSE_DIR\""
echo ""
echo "- Checking for initial Virtuoso license"
if test -f virtuoso.lic
then
if test \! -f "$OPLMGR_LICENSE_DIR/virtuoso.lic"
then
if cp virtuoso.lic "$OPLMGR_LICENSE_DIR/virtuoso.lic"
then
echo "Virtuoso license stored in: $OPLMGR_LICENSE_DIR"
else
echo "***"
echo "*** ERROR: could not install virtuoso.lic."
echo "***"
echo "*** Please check permissions and install the virtuoso.lic file manually"
echo "*** into \"$OPLMGR_LICENSE_DIR\""
echo "***"
fi
fi
fi
echo ""
echo "- Starting OpenLink License Manager"
install/command-oplmgr.sh start
echo ""
echo "- Creating default environment settings"
install/install-env.sh
echo ""
echo "- Creating default database settings"
install/command-create-db.sh -default-database
echo ""
echo "- Registering ODBC drivers"
install/register-odbc.sh
echo ""
echo "- Registering .NET provider for Mono"
install/register-mono.sh
echo ""
echo "- Installing VAD packages in database (this can take some time)"
install/install-vad.sh
echo ""
echo "- Starting Virtuoso server instance"
install/command-startup.sh database
echo ""
echo "- Finalizing installation"
install/install-final.sh
echo ""
echo "Installation completed"
else
echo ""
echo "***"
echo "*** ERROR: could not find package to install."
echo "***"
exit 1
fi
# ALL DONE
exit 0