441 |
10 Aug 06 |
jari |
1 |
@echo off |
441 |
10 Aug 06 |
jari |
2 |
rem |
441 |
10 Aug 06 |
jari |
rem install-win.bat |
441 |
10 Aug 06 |
jari |
4 |
rem |
441 |
10 Aug 06 |
jari |
5 |
|
1916 |
31 Aug 07 |
jari |
rem Copyright (C) 2006 Gregory Vincic, Jari Hakkinen, Olle Mansson |
1916 |
31 Aug 07 |
jari |
rem Copyright (C) 2007 Gregory Vincic, Olle Mansson |
441 |
10 Aug 06 |
jari |
8 |
rem |
441 |
10 Aug 06 |
jari |
rem Files are copyright by their respective authors. The contributions to |
441 |
10 Aug 06 |
jari |
rem files where copyright is not explicitly stated can be traced with the |
441 |
10 Aug 06 |
jari |
rem source code revision system. |
441 |
10 Aug 06 |
jari |
12 |
rem |
441 |
10 Aug 06 |
jari |
rem This file is part of Proteios. |
441 |
10 Aug 06 |
jari |
rem Available at http://www.proteios.org/ |
441 |
10 Aug 06 |
jari |
15 |
rem |
441 |
10 Aug 06 |
jari |
rem Proteios is free software; you can redistribute it and/or |
441 |
10 Aug 06 |
jari |
rem modify it under the terms of the GNU General Public License |
441 |
10 Aug 06 |
jari |
rem as published by the Free Software Foundation; either version 2 |
441 |
10 Aug 06 |
jari |
rem of the License, or (at your option) any later version. |
441 |
10 Aug 06 |
jari |
20 |
rem |
441 |
10 Aug 06 |
jari |
rem Proteios is distributed in the hope that it will be useful, |
441 |
10 Aug 06 |
jari |
rem but WITHOUT ANY WARRANTY, without even the implied warranty of |
441 |
10 Aug 06 |
jari |
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
441 |
10 Aug 06 |
jari |
rem GNU General Public License for more details. |
441 |
10 Aug 06 |
jari |
25 |
rem |
441 |
10 Aug 06 |
jari |
rem You should have received a copy of the GNU General Public License |
441 |
10 Aug 06 |
jari |
rem along with this program; if not, write to the Free Software |
441 |
10 Aug 06 |
jari |
rem Foundation, Inc., 59 Temple Place - Suite 330, |
441 |
10 Aug 06 |
jari |
rem Boston, MA 02111-1307, USA. |
441 |
10 Aug 06 |
jari |
30 |
|
441 |
10 Aug 06 |
jari |
31 |
rem |
441 |
10 Aug 06 |
jari |
rem Performs Proteios 2.x installation on Microsoft Windows. |
441 |
10 Aug 06 |
jari |
33 |
rem |
441 |
10 Aug 06 |
jari |
rem Uses bat file inp2var.bat to store console input data |
441 |
10 Aug 06 |
jari |
rem into a given variable. |
441 |
10 Aug 06 |
jari |
36 |
rem |
441 |
10 Aug 06 |
jari |
rem Usage: inp2var.bat var_name [promptfile [mask_input]] |
441 |
10 Aug 06 |
jari |
38 |
rem |
441 |
10 Aug 06 |
jari |
rem Used programs/files: |
441 |
10 Aug 06 |
jari |
40 |
rem |
441 |
10 Aug 06 |
jari |
rem inp2var.bat |
441 |
10 Aug 06 |
jari |
rem inp2var.jar |
963 |
23 Nov 06 |
olle |
rem Replace.jar |
441 |
10 Aug 06 |
jari |
44 |
rem |
441 |
10 Aug 06 |
jari |
45 |
|
441 |
10 Aug 06 |
jari |
46 |
rem |
441 |
10 Aug 06 |
jari |
rem Configuration |
441 |
10 Aug 06 |
jari |
48 |
rem |
441 |
10 Aug 06 |
jari |
49 |
set sql_client=mysql |
441 |
10 Aug 06 |
jari |
50 |
set app_name=proteios |
963 |
23 Nov 06 |
olle |
51 |
set build_dir=www\WEB-INF\classes |
2780 |
11 Aug 08 |
olle |
rem Store system host name in environment variable %host_name% for use in default notification e-mail "from"-address |
2780 |
11 Aug 08 |
olle |
53 |
java -jar GetHostName.jar > prompt.txt |
2780 |
11 Aug 08 |
olle |
54 |
call inp2var.bat host_name prompt.txt no_input |
963 |
23 Nov 06 |
olle |
55 |
rem |
963 |
23 Nov 06 |
olle |
rem End Configuration |
963 |
23 Nov 06 |
olle |
57 |
rem |
441 |
10 Aug 06 |
jari |
58 |
|
441 |
10 Aug 06 |
jari |
59 |
rem |
441 |
10 Aug 06 |
jari |
rem Welcome message and installation references |
441 |
10 Aug 06 |
jari |
61 |
rem |
441 |
10 Aug 06 |
jari |
62 |
echo. |
441 |
10 Aug 06 |
jari |
63 |
echo. |
441 |
10 Aug 06 |
jari |
64 |
echo Welcome to the %app_name% installation. |
441 |
10 Aug 06 |
jari |
65 |
echo. |
441 |
10 Aug 06 |
jari |
66 |
echo For more information on the installation steps, see: |
2617 |
19 Mar 08 |
gregory |
67 |
echo http://www.proteios.org/wiki/Installation |
441 |
10 Aug 06 |
jari |
68 |
echo. |
441 |
10 Aug 06 |
jari |
69 |
|
441 |
10 Aug 06 |
jari |
70 |
rem |
1984 |
20 Sep 07 |
fredrik |
rem Get DBMS hostname, administrator name and password |
441 |
10 Aug 06 |
jari |
72 |
rem |
441 |
10 Aug 06 |
jari |
73 |
:step_1a |
1984 |
20 Sep 07 |
fredrik |
74 |
set body_text=1. Enter database host name and user name with create privileges on your DBMS. |
441 |
10 Aug 06 |
jari |
75 |
set next_step=step_1b |
441 |
10 Aug 06 |
jari |
76 |
goto print |
441 |
10 Aug 06 |
jari |
77 |
:step_1b |
1984 |
20 Sep 07 |
fredrik |
78 |
echo Database Host [localhost]: > prompt.txt |
1984 |
20 Sep 07 |
fredrik |
79 |
call inp2var.bat db_host prompt.txt |
1984 |
20 Sep 07 |
fredrik |
80 |
if "%db_host%"=="" set db_host=localhost |
441 |
10 Aug 06 |
jari |
81 |
echo Username [root]: > prompt.txt |
441 |
10 Aug 06 |
jari |
82 |
call inp2var.bat db_manager prompt.txt |
441 |
10 Aug 06 |
jari |
83 |
if "%db_manager%"=="" set db_manager=root |
441 |
10 Aug 06 |
jari |
84 |
echo Password: > prompt.txt |
441 |
10 Aug 06 |
jari |
85 |
call inp2var.bat db_manager_pwd prompt.txt mask_input |
441 |
10 Aug 06 |
jari |
86 |
echo. |
441 |
10 Aug 06 |
jari |
87 |
|
441 |
10 Aug 06 |
jari |
88 |
rem |
2190 |
19 Oct 07 |
gregory |
rem Get Proteios root password |
441 |
10 Aug 06 |
jari |
90 |
rem |
441 |
10 Aug 06 |
jari |
91 |
:step_2a |
2190 |
19 Oct 07 |
gregory |
92 |
set body_text=2. Enter a password for the root account in %app_name%. |
441 |
10 Aug 06 |
jari |
93 |
set next_step=step_2b |
441 |
10 Aug 06 |
jari |
94 |
goto print |
441 |
10 Aug 06 |
jari |
95 |
:step_2b |
2190 |
19 Oct 07 |
gregory |
96 |
echo Password: > prompt.txt |
2190 |
19 Oct 07 |
gregory |
97 |
call inp2var.bat root_pwd prompt.txt mask_input |
2190 |
19 Oct 07 |
gregory |
98 |
echo. |
2190 |
19 Oct 07 |
gregory |
99 |
|
2190 |
19 Oct 07 |
gregory |
100 |
rem |
2190 |
19 Oct 07 |
gregory |
rem Get DBMS name |
2190 |
19 Oct 07 |
gregory |
102 |
rem |
2190 |
19 Oct 07 |
gregory |
103 |
:step_3a |
2190 |
19 Oct 07 |
gregory |
104 |
set body_text=3. Configure the database name and user that %app_name% will use to connect to your DBMS. |
2190 |
19 Oct 07 |
gregory |
105 |
set next_step=step_3b |
2190 |
19 Oct 07 |
gregory |
106 |
goto print |
2190 |
19 Oct 07 |
gregory |
107 |
:step_3b |
441 |
10 Aug 06 |
jari |
108 |
echo Database name [%app_name%]: > prompt.txt |
441 |
10 Aug 06 |
jari |
109 |
call inp2var.bat db_name prompt.txt |
441 |
10 Aug 06 |
jari |
110 |
if "%db_name%"=="" set db_name=%app_name% |
441 |
10 Aug 06 |
jari |
111 |
|
441 |
10 Aug 06 |
jari |
112 |
rem |
441 |
10 Aug 06 |
jari |
rem Get DBMS user name and password |
441 |
10 Aug 06 |
jari |
114 |
rem |
441 |
10 Aug 06 |
jari |
115 |
echo Username [%app_name%]: > prompt.txt |
441 |
10 Aug 06 |
jari |
116 |
call inp2var.bat app_user prompt.txt |
441 |
10 Aug 06 |
jari |
117 |
if "%app_user%"=="" set app_user=%app_name% |
441 |
10 Aug 06 |
jari |
118 |
echo Password: > prompt.txt |
441 |
10 Aug 06 |
jari |
119 |
call inp2var.bat app_user_pwd prompt.txt mask_input |
441 |
10 Aug 06 |
jari |
120 |
echo. |
441 |
10 Aug 06 |
jari |
121 |
|
441 |
10 Aug 06 |
jari |
122 |
|
1001 |
30 Nov 06 |
olle |
123 |
rem |
1001 |
30 Nov 06 |
olle |
rem Get user files directory. |
1001 |
30 Nov 06 |
olle |
125 |
rem |
1001 |
30 Nov 06 |
olle |
126 |
:step_4a |
1001 |
30 Nov 06 |
olle |
127 |
set body_text=4. Select a directory for %app_name% to use for user files. |
1001 |
30 Nov 06 |
olle |
128 |
set next_step=step_4b |
1001 |
30 Nov 06 |
olle |
129 |
goto print |
1001 |
30 Nov 06 |
olle |
130 |
:step_4b |
1001 |
30 Nov 06 |
olle |
131 |
echo User files directory [C:\%app_name%]: > prompt.txt |
1001 |
30 Nov 06 |
olle |
132 |
call inp2var.bat user_files_dir prompt.txt |
1001 |
30 Nov 06 |
olle |
133 |
if "%user_files_dir%"=="" set user_files_dir=C:\%app_name% |
1044 |
05 Dec 06 |
olle |
134 |
rem |
1044 |
05 Dec 06 |
olle |
rem Store user files directory name with backslashes "\" |
1044 |
05 Dec 06 |
olle |
rem exchanged for slashes "/" in variable %user_files_dir_slashes% |
1044 |
05 Dec 06 |
olle |
137 |
rem |
1044 |
05 Dec 06 |
olle |
138 |
echo %user_files_dir% > prompt.txt |
1044 |
05 Dec 06 |
olle |
139 |
call inp2var.bat user_files_dir_slashes prompt.txt no_input_convert_backslashes |
1001 |
30 Nov 06 |
olle |
140 |
|
1046 |
05 Dec 06 |
olle |
141 |
rem |
1046 |
05 Dec 06 |
olle |
rem Get temporary files directory. |
1046 |
05 Dec 06 |
olle |
143 |
rem |
1046 |
05 Dec 06 |
olle |
144 |
:step_5a |
1046 |
05 Dec 06 |
olle |
145 |
set body_text=5. Select a directory for %app_name% to use for temporary files. |
1046 |
05 Dec 06 |
olle |
146 |
set next_step=step_5b |
1046 |
05 Dec 06 |
olle |
147 |
goto print |
1046 |
05 Dec 06 |
olle |
148 |
:step_5b |
1046 |
05 Dec 06 |
olle |
149 |
echo Temporary files directory [C:\temp]: > prompt.txt |
1046 |
05 Dec 06 |
olle |
150 |
call inp2var.bat temp_files_dir prompt.txt |
1046 |
05 Dec 06 |
olle |
151 |
if "%temp_files_dir%"=="" set temp_files_dir=C:\temp |
1046 |
05 Dec 06 |
olle |
152 |
rem |
1046 |
05 Dec 06 |
olle |
rem Store temporary files directory name with backslashes "\" |
1046 |
05 Dec 06 |
olle |
rem exchanged for slashes "/" in variable %temp_files_dir_slashes% |
1046 |
05 Dec 06 |
olle |
155 |
rem |
1046 |
05 Dec 06 |
olle |
156 |
echo %temp_files_dir% > prompt.txt |
1046 |
05 Dec 06 |
olle |
157 |
call inp2var.bat temp_files_dir_slashes prompt.txt no_input_convert_backslashes |
1046 |
05 Dec 06 |
olle |
158 |
|
1065 |
13 Dec 06 |
olle |
159 |
rem |
1065 |
13 Dec 06 |
olle |
rem Get FTP control port. |
1065 |
13 Dec 06 |
olle |
161 |
rem |
1065 |
13 Dec 06 |
olle |
162 |
:step_6a |
1065 |
13 Dec 06 |
olle |
163 |
set body_text=6. Select control port for %app_name% FTP Server. |
1065 |
13 Dec 06 |
olle |
164 |
set next_step=step_6b |
1065 |
13 Dec 06 |
olle |
165 |
goto print |
1065 |
13 Dec 06 |
olle |
166 |
:step_6b |
1065 |
13 Dec 06 |
olle |
167 |
echo FTP Server Control Port [8021]: > prompt.txt |
1065 |
13 Dec 06 |
olle |
168 |
call inp2var.bat ftp_control_port prompt.txt |
1065 |
13 Dec 06 |
olle |
169 |
if "%ftp_control_port%"=="" set ftp_control_port=8021 |
1065 |
13 Dec 06 |
olle |
170 |
|
2366 |
05 Nov 07 |
olle |
171 |
rem |
2702 |
15 May 08 |
olle |
rem Get optional FTP passive port range. |
2702 |
15 May 08 |
olle |
173 |
rem |
2702 |
15 May 08 |
olle |
174 |
:step_7a |
2702 |
15 May 08 |
olle |
175 |
set body_text=7. Set optional passive port range for %app_name% FTP Server (min,max or blank). |
2702 |
15 May 08 |
olle |
176 |
set next_step=step_7b |
2702 |
15 May 08 |
olle |
177 |
goto print |
2702 |
15 May 08 |
olle |
178 |
:step_7b |
2702 |
15 May 08 |
olle |
179 |
echo FTP Server Passive Port Range []: > prompt.txt |
2702 |
15 May 08 |
olle |
180 |
call inp2var.bat ftp_passive_port_range prompt.txt |
2702 |
15 May 08 |
olle |
181 |
if "%ftp_passive_port_range%"=="" set ftp_passive_port_range= |
2702 |
15 May 08 |
olle |
182 |
|
2702 |
15 May 08 |
olle |
183 |
rem |
2780 |
11 Aug 08 |
olle |
rem Get outgoing mail server for notification e-mail. |
2780 |
11 Aug 08 |
olle |
185 |
rem |
2780 |
11 Aug 08 |
olle |
186 |
:step_8a |
2780 |
11 Aug 08 |
olle |
187 |
set body_text=8. Set outgoing mail server for %app_name% notification e-mail. |
2780 |
11 Aug 08 |
olle |
188 |
set next_step=step_8b |
2780 |
11 Aug 08 |
olle |
189 |
goto print |
2780 |
11 Aug 08 |
olle |
190 |
:step_8b |
2780 |
11 Aug 08 |
olle |
191 |
echo Mail server []: > prompt.txt |
2780 |
11 Aug 08 |
olle |
192 |
call inp2var.bat mail_server prompt.txt |
2780 |
11 Aug 08 |
olle |
193 |
if "%mail_server%"=="" set mail_server= |
2780 |
11 Aug 08 |
olle |
194 |
|
2780 |
11 Aug 08 |
olle |
195 |
rem |
2780 |
11 Aug 08 |
olle |
rem Get "from"-address for notification e-mail. |
2780 |
11 Aug 08 |
olle |
197 |
rem |
2780 |
11 Aug 08 |
olle |
198 |
:step_9a |
2780 |
11 Aug 08 |
olle |
199 |
set body_text=9. Set "from"-address for %app_name% notification e-mail. |
2780 |
11 Aug 08 |
olle |
200 |
set next_step=step_9b |
2780 |
11 Aug 08 |
olle |
201 |
goto print |
2780 |
11 Aug 08 |
olle |
202 |
:step_9b |
2780 |
11 Aug 08 |
olle |
203 |
echo Mail "from"-address [noreply@%host_name%]: > prompt.txt |
2780 |
11 Aug 08 |
olle |
204 |
call inp2var.bat mail_from_address prompt.txt |
2780 |
11 Aug 08 |
olle |
205 |
if "%mail_from_address%"=="" set mail_from_address=noreply@%host_name% |
2780 |
11 Aug 08 |
olle |
206 |
|
2780 |
11 Aug 08 |
olle |
207 |
:step_9c |
2780 |
11 Aug 08 |
olle |
208 |
rem |
2366 |
05 Nov 07 |
olle |
rem Print summary of selected options |
2366 |
05 Nov 07 |
olle |
210 |
rem |
2366 |
05 Nov 07 |
olle |
211 |
set body_text=Thank you! Selected options for the installation: |
2780 |
11 Aug 08 |
olle |
212 |
set next_step=step_9c1 |
2366 |
05 Nov 07 |
olle |
213 |
goto print |
2780 |
11 Aug 08 |
olle |
214 |
:step_9c1 |
2366 |
05 Nov 07 |
olle |
215 |
echo Database Host name : %db_host% |
2366 |
05 Nov 07 |
olle |
216 |
echo Database Manager Username: %db_manager% |
2366 |
05 Nov 07 |
olle |
217 |
echo Database name : %db_name% |
2780 |
11 Aug 08 |
olle |
218 |
echo '%app_name%' Database Username : %app_user% |
2780 |
11 Aug 08 |
olle |
219 |
echo '%app_name%' User Files Directory : %user_files_dir% |
2780 |
11 Aug 08 |
olle |
220 |
echo '%app_name%' Temporary Files Directory : %temp_files_dir% |
2780 |
11 Aug 08 |
olle |
221 |
echo '%app_name%' FTP Server Control Port : %ftp_control_port% |
2780 |
11 Aug 08 |
olle |
222 |
echo '%app_name%' FTP Server Passive Port Range : %ftp_passive_port_range% |
2780 |
11 Aug 08 |
olle |
223 |
echo '%app_name%' Outgoing mail server : %mail_server% |
2780 |
11 Aug 08 |
olle |
224 |
echo '%app_name%' notification e-mail "from"-address: %mail_from_address% |
2366 |
05 Nov 07 |
olle |
225 |
echo. |
2432 |
28 Nov 07 |
olle |
226 |
echo Do you want to continue the installation[y/N]? > prompt.txt |
2366 |
05 Nov 07 |
olle |
227 |
call inp2var.bat continue_install prompt.txt |
2366 |
05 Nov 07 |
olle |
228 |
if "%continue_install%"=="" set continue_install=N |
2366 |
05 Nov 07 |
olle |
229 |
if "%continue_install%"=="y" set continue_install=Y |
2366 |
05 Nov 07 |
olle |
230 |
if not "%continue_install%"=="Y" set continue_install=N |
2366 |
05 Nov 07 |
olle |
231 |
if "%continue_install%"=="Y" goto yes_install |
2366 |
05 Nov 07 |
olle |
232 |
set body_text=Installation stopped. Please try again later. |
2785 |
12 Aug 08 |
olle |
233 |
set next_step=step_9c2 |
2366 |
05 Nov 07 |
olle |
234 |
goto print |
2785 |
12 Aug 08 |
olle |
235 |
:step_9c2 |
2366 |
05 Nov 07 |
olle |
236 |
goto finish |
2366 |
05 Nov 07 |
olle |
237 |
rem |
2366 |
05 Nov 07 |
olle |
238 |
rem |
2366 |
05 Nov 07 |
olle |
239 |
rem |
2366 |
05 Nov 07 |
olle |
240 |
:yes_install |
2366 |
05 Nov 07 |
olle |
241 |
set body_text=Let's continue with the installation. |
2785 |
12 Aug 08 |
olle |
242 |
set next_step=step_9c3 |
2366 |
05 Nov 07 |
olle |
243 |
goto print |
2785 |
12 Aug 08 |
olle |
244 |
:step_9c3 |
2366 |
05 Nov 07 |
olle |
245 |
|
2366 |
05 Nov 07 |
olle |
246 |
|
2366 |
05 Nov 07 |
olle |
247 |
rem |
2366 |
05 Nov 07 |
olle |
rem Installation |
2366 |
05 Nov 07 |
olle |
249 |
rem |
441 |
10 Aug 06 |
jari |
250 |
rem |
1984 |
20 Sep 07 |
fredrik |
rem Database setup. If database at localhost, do not use -h option. |
441 |
10 Aug 06 |
jari |
252 |
rem |
1984 |
20 Sep 07 |
fredrik |
253 |
set sql_exec=%sql_client% -h %db_host% -u %db_manager% -p%db_manager_pwd% -e |
1984 |
20 Sep 07 |
fredrik |
254 |
if "%db_host%"=="localhost" set sql_exec=%sql_client% -u %db_manager% -p%db_manager_pwd% -e |
2082 |
04 Oct 07 |
olle |
255 |
rem |
2082 |
04 Oct 07 |
olle |
rem Only ask if database should be dropped, if it shouldn't be updated. |
2082 |
04 Oct 07 |
olle |
257 |
rem |
2082 |
04 Oct 07 |
olle |
258 |
echo Do you want to update an existing '%db_name%' database [y/N]? > prompt.txt |
2082 |
04 Oct 07 |
olle |
259 |
call inp2var.bat update_db prompt.txt |
2082 |
04 Oct 07 |
olle |
260 |
if "%update_db%"=="" set update_db=N |
2082 |
04 Oct 07 |
olle |
261 |
if "%update_db%"=="y" set update_db=Y |
2365 |
05 Nov 07 |
olle |
262 |
if not "%update_db%"=="Y" set update_db=N |
2365 |
05 Nov 07 |
olle |
263 |
if "%update_db%"=="Y" goto yes_update |
2082 |
04 Oct 07 |
olle |
264 |
rem |
2082 |
04 Oct 07 |
olle |
rem No database update, ask if database should be dropped. |
2082 |
04 Oct 07 |
olle |
266 |
rem |
1383 |
08 Mar 07 |
olle |
267 |
echo Do you want to drop the existing '%db_name%' database [y/N]? > prompt.txt |
441 |
10 Aug 06 |
jari |
268 |
call inp2var.bat drop_db prompt.txt |
1383 |
08 Mar 07 |
olle |
269 |
if "%drop_db%"=="" set drop_db=N |
441 |
10 Aug 06 |
jari |
270 |
if "%drop_db%"=="y" set drop_db=Y |
2365 |
05 Nov 07 |
olle |
271 |
if not "%drop_db%"=="Y" set drop_db=N |
2365 |
05 Nov 07 |
olle |
272 |
if "%drop_db%"=="N" goto no_drop |
441 |
10 Aug 06 |
jari |
273 |
rem |
1001 |
30 Nov 06 |
olle |
rem Dropping existing database [optional] |
441 |
10 Aug 06 |
jari |
275 |
rem |
441 |
10 Aug 06 |
jari |
276 |
echo Dropping database... |
963 |
23 Nov 06 |
olle |
277 |
%sql_exec% "DROP DATABASE IF EXISTS `%db_name%`;" |
441 |
10 Aug 06 |
jari |
278 |
echo done |
441 |
10 Aug 06 |
jari |
279 |
:no_drop |
2082 |
04 Oct 07 |
olle |
280 |
:yes_update |
441 |
10 Aug 06 |
jari |
281 |
|
441 |
10 Aug 06 |
jari |
282 |
rem |
441 |
10 Aug 06 |
jari |
rem Create database if not existing |
441 |
10 Aug 06 |
jari |
284 |
rem |
441 |
10 Aug 06 |
jari |
rem (Error checking is needed here) |
441 |
10 Aug 06 |
jari |
286 |
rem |
963 |
23 Nov 06 |
olle |
287 |
%sql_exec% "CREATE DATABASE IF NOT EXISTS `%db_name%` DEFAULT CHARACTER SET utf8;" |
1984 |
20 Sep 07 |
fredrik |
288 |
%sql_exec% "GRANT ALL ON `%db_name%`.* TO '%app_user%'@'%db_host%' IDENTIFIED BY '%app_user_pwd%'; FLUSH PRIVILEGES;" |
441 |
10 Aug 06 |
jari |
289 |
|
441 |
10 Aug 06 |
jari |
290 |
rem |
441 |
10 Aug 06 |
jari |
rem Update proteios configuration file (parsed by InitDB program) |
441 |
10 Aug 06 |
jari |
292 |
rem |
441 |
10 Aug 06 |
jari |
293 |
rem |
441 |
10 Aug 06 |
jari |
rem Store current directory in variable %here% |
441 |
10 Aug 06 |
jari |
295 |
rem |
441 |
10 Aug 06 |
jari |
296 |
cd > prompt.txt |
441 |
10 Aug 06 |
jari |
297 |
call inp2var.bat here prompt.txt no_input |
963 |
23 Nov 06 |
olle |
298 |
echo Updating %app_name% *.config files in %build_dir% |
963 |
23 Nov 06 |
olle |
299 |
cd %build_dir% |
441 |
10 Aug 06 |
jari |
300 |
rem |
1001 |
30 Nov 06 |
olle |
rem Insert database username, password, name, and user files directory |
1001 |
30 Nov 06 |
olle |
rem in file proteios.config.in. |
441 |
10 Aug 06 |
jari |
303 |
rem |
4000 |
19 Nov 10 |
olle |
304 |
java -jar "%here%"\Replace.jar proteios.config.in proteios.config __USERNAME__=%app_user% __PASSWORD__=%app_user_pwd% __DATABASE__=%db_name% __USERFILES__=%user_files_dir_slashes% __HOST__=%db_host% __SMTPHOST__=%mail_server% __MAIL_FROM_ADDRESS__=%mail_from_address% |
441 |
10 Aug 06 |
jari |
305 |
cd %here% |
441 |
10 Aug 06 |
jari |
306 |
|
441 |
10 Aug 06 |
jari |
307 |
rem |
1046 |
05 Dec 06 |
olle |
rem Update proteios web.xml file (used by Tomcat) |
1046 |
05 Dec 06 |
olle |
309 |
rem |
1046 |
05 Dec 06 |
olle |
310 |
echo Updating %app_name% web.xml file |
1046 |
05 Dec 06 |
olle |
311 |
cd %build_dir%\.. |
1046 |
05 Dec 06 |
olle |
312 |
rem |
1046 |
05 Dec 06 |
olle |
rem Insert temporary files directory |
1046 |
05 Dec 06 |
olle |
rem in file web.xml.in. |
1046 |
05 Dec 06 |
olle |
315 |
rem |
4000 |
19 Nov 10 |
olle |
316 |
java -jar "%here%"\Replace.jar web.xml.in web.xml __TEMPFILES__=%temp_files_dir_slashes% |
1046 |
05 Dec 06 |
olle |
317 |
cd %here% |
1046 |
05 Dec 06 |
olle |
318 |
|
1046 |
05 Dec 06 |
olle |
319 |
rem |
1065 |
13 Dec 06 |
olle |
rem Update proteios ftp.properties file (used by FTP Server) |
1065 |
13 Dec 06 |
olle |
321 |
rem |
1065 |
13 Dec 06 |
olle |
322 |
echo Updating %app_name% ftp.properties file |
1065 |
13 Dec 06 |
olle |
323 |
cd %build_dir% |
1065 |
13 Dec 06 |
olle |
324 |
rem |
1065 |
13 Dec 06 |
olle |
rem Insert control port number |
2702 |
15 May 08 |
olle |
rem and passive port range |
1065 |
13 Dec 06 |
olle |
rem in file ftp.properties.in. |
1065 |
13 Dec 06 |
olle |
328 |
rem |
4000 |
19 Nov 10 |
olle |
329 |
java -jar "%here%"\Replace.jar ftp.properties.in ftp.properties __CONTROL_PORT__=%ftp_control_port% __PASSIVE_PORT_RANGE__=%ftp_passive_port_range% __USERNAME__=%app_user% __PASSWORD__=%app_user_pwd% __DATABASE__=%db_name% __USERFILES__=%user_files_dir_slashes% __HOST__=%db_host% |
1065 |
13 Dec 06 |
olle |
330 |
cd %here% |
1065 |
13 Dec 06 |
olle |
331 |
|
1065 |
13 Dec 06 |
olle |
332 |
rem |
2712 |
26 May 08 |
olle |
rem Create proteios xtandem.properties file if not existing. |
2712 |
26 May 08 |
olle |
334 |
rem |
2712 |
26 May 08 |
olle |
335 |
cd %build_dir% |
2712 |
26 May 08 |
olle |
336 |
if exist xtandem.properties goto xtandem_properties_file_ok |
2712 |
26 May 08 |
olle |
337 |
echo Creating X!Tandem search config file xtandem.properties... |
2712 |
26 May 08 |
olle |
338 |
copy xtandem.properties.in xtandem.properties |
2712 |
26 May 08 |
olle |
339 |
goto xtandem_properties_file_end |
2712 |
26 May 08 |
olle |
340 |
:xtandem_properties_file_ok |
2712 |
26 May 08 |
olle |
341 |
echo X!Tandem search config file xtandem.properties exists - OK. |
2712 |
26 May 08 |
olle |
342 |
:xtandem_properties_file_end |
2712 |
26 May 08 |
olle |
343 |
cd %here% |
2712 |
26 May 08 |
olle |
344 |
|
2712 |
26 May 08 |
olle |
345 |
rem |
2896 |
07 Oct 08 |
olle |
rem Create proteios mascot.properties file if not existing. |
2896 |
07 Oct 08 |
olle |
347 |
rem |
2896 |
07 Oct 08 |
olle |
348 |
cd %build_dir% |
2896 |
07 Oct 08 |
olle |
349 |
if exist mascot.properties goto mascot_properties_file_ok |
2896 |
07 Oct 08 |
olle |
350 |
echo Creating Mascot search config file mascot.properties... |
2896 |
07 Oct 08 |
olle |
351 |
copy mascot.properties.in mascot.properties |
2896 |
07 Oct 08 |
olle |
352 |
goto mascot_properties_file_end |
2896 |
07 Oct 08 |
olle |
353 |
:mascot_properties_file_ok |
2896 |
07 Oct 08 |
olle |
354 |
echo Mascot search config file mascot.properties exists - OK. |
2896 |
07 Oct 08 |
olle |
355 |
:mascot_properties_file_end |
2896 |
07 Oct 08 |
olle |
356 |
cd %here% |
2896 |
07 Oct 08 |
olle |
357 |
|
2896 |
07 Oct 08 |
olle |
358 |
rem |
2916 |
27 Oct 08 |
olle |
rem Create proteios omssa.properties file if not existing. |
2916 |
27 Oct 08 |
olle |
360 |
rem |
2916 |
27 Oct 08 |
olle |
361 |
cd %build_dir% |
2916 |
27 Oct 08 |
olle |
362 |
if exist omssa.properties goto omssa_properties_file_ok |
2916 |
27 Oct 08 |
olle |
363 |
echo Creating OMSSA search config file omssa.properties... |
2916 |
27 Oct 08 |
olle |
364 |
copy omssa.properties.in omssa.properties |
2916 |
27 Oct 08 |
olle |
365 |
goto omssa_properties_file_end |
2916 |
27 Oct 08 |
olle |
366 |
:omssa_properties_file_ok |
2916 |
27 Oct 08 |
olle |
367 |
echo OMSSA search config file omssa.properties exists - OK. |
2916 |
27 Oct 08 |
olle |
368 |
:omssa_properties_file_end |
2916 |
27 Oct 08 |
olle |
369 |
cd %here% |
2916 |
27 Oct 08 |
olle |
370 |
|
2916 |
27 Oct 08 |
olle |
371 |
rem |
2939 |
11 Nov 08 |
olle |
rem Create proteios pike.properties file if not existing. |
2939 |
11 Nov 08 |
olle |
373 |
rem |
2939 |
11 Nov 08 |
olle |
374 |
cd %build_dir% |
2939 |
11 Nov 08 |
olle |
375 |
if exist pike.properties goto pike_properties_file_ok |
2939 |
11 Nov 08 |
olle |
376 |
echo Creating PIKE search config file pike.properties... |
2939 |
11 Nov 08 |
olle |
377 |
copy pike.properties.in pike.properties |
2939 |
11 Nov 08 |
olle |
378 |
goto pike_properties_file_end |
2939 |
11 Nov 08 |
olle |
379 |
:pike_properties_file_ok |
2939 |
11 Nov 08 |
olle |
380 |
echo PIKE search config file pike.properties exists - OK. |
2939 |
11 Nov 08 |
olle |
381 |
:pike_properties_file_end |
2939 |
11 Nov 08 |
olle |
382 |
cd %here% |
2939 |
11 Nov 08 |
olle |
383 |
|
2939 |
11 Nov 08 |
olle |
384 |
rem |
4085 |
20 Dec 10 |
olle |
rem Create proteios msinspect.properties file if not existing. |
4085 |
20 Dec 10 |
olle |
386 |
rem |
4085 |
20 Dec 10 |
olle |
387 |
cd %build_dir% |
4085 |
20 Dec 10 |
olle |
388 |
if exist msinspect.properties goto msinspect_properties_file_ok |
4085 |
20 Dec 10 |
olle |
389 |
echo Creating msInspect feature detection config file msinspect.properties... |
4085 |
20 Dec 10 |
olle |
390 |
copy msinspect.properties.in msinspect.properties |
4085 |
20 Dec 10 |
olle |
391 |
goto msinspect_properties_file_end |
4085 |
20 Dec 10 |
olle |
392 |
:msinspect_properties_file_ok |
4085 |
20 Dec 10 |
olle |
393 |
echo msInspect feature detection config file msinspect.properties exists - OK. |
4085 |
20 Dec 10 |
olle |
394 |
:msinspect_properties_file_end |
4085 |
20 Dec 10 |
olle |
395 |
cd %here% |
4085 |
20 Dec 10 |
olle |
396 |
|
4085 |
20 Dec 10 |
olle |
397 |
rem |
4567 |
28 Apr 15 |
fredrik |
rem Create proteios dinosaur.properties file if not existing. |
4567 |
28 Apr 15 |
fredrik |
399 |
rem |
4567 |
28 Apr 15 |
fredrik |
400 |
cd %build_dir% |
4567 |
28 Apr 15 |
fredrik |
401 |
if exist dinosaur.properties goto dinosaur_properties_file_ok |
4567 |
28 Apr 15 |
fredrik |
402 |
echo Creating dinosaur feature detection config file dinosaur.properties... |
4567 |
28 Apr 15 |
fredrik |
403 |
copy dinosaur.properties.in dinosaur.properties |
4567 |
28 Apr 15 |
fredrik |
404 |
goto dinosaur_properties_file_end |
4567 |
28 Apr 15 |
fredrik |
405 |
:dinosaur_properties_file_ok |
4567 |
28 Apr 15 |
fredrik |
406 |
echo Dinosaur feature detection config file dinoaur.properties exists - OK. |
4567 |
28 Apr 15 |
fredrik |
407 |
:dinosaur_properties_file_end |
4567 |
28 Apr 15 |
fredrik |
408 |
cd %here% |
4567 |
28 Apr 15 |
fredrik |
409 |
|
4567 |
28 Apr 15 |
fredrik |
410 |
rem |
4611 |
04 Jul 16 |
fredrik |
rem Create proteios msgfplus.properties file if not existing. |
4611 |
04 Jul 16 |
fredrik |
412 |
rem |
4611 |
04 Jul 16 |
fredrik |
413 |
cd %build_dir% |
4611 |
04 Jul 16 |
fredrik |
414 |
if exist msgfplus.properties goto msgfplus_properties_file_ok |
4611 |
04 Jul 16 |
fredrik |
415 |
echo Creating msgfplus feature detection config file msgfplus.properties... |
4611 |
04 Jul 16 |
fredrik |
416 |
copy msgfplus.properties.in msgfplus.properties |
4611 |
04 Jul 16 |
fredrik |
417 |
goto msgfplus_properties_file_end |
4611 |
04 Jul 16 |
fredrik |
418 |
:msgfplus_properties_file_ok |
4611 |
04 Jul 16 |
fredrik |
419 |
echo Dinosaur feature detection config file dinoaur.properties exists - OK. |
4611 |
04 Jul 16 |
fredrik |
420 |
:msgfplus_properties_file_end |
4611 |
04 Jul 16 |
fredrik |
421 |
cd %here% |
4611 |
04 Jul 16 |
fredrik |
422 |
|
4611 |
04 Jul 16 |
fredrik |
423 |
rem |
4153 |
04 Mar 11 |
olle |
rem Create proteios openms.properties file if not existing. |
4153 |
04 Mar 11 |
olle |
425 |
rem |
4153 |
04 Mar 11 |
olle |
426 |
cd %build_dir% |
4153 |
04 Mar 11 |
olle |
427 |
if exist openms.properties goto openms_properties_file_ok |
4153 |
04 Mar 11 |
olle |
428 |
echo Creating OpenMS feature detection config file openms.properties... |
4153 |
04 Mar 11 |
olle |
429 |
copy openms.properties.in openms.properties |
4153 |
04 Mar 11 |
olle |
430 |
goto openms_properties_file_end |
4153 |
04 Mar 11 |
olle |
431 |
:openms_properties_file_ok |
4153 |
04 Mar 11 |
olle |
432 |
echo OpenMS feature detection config file openms.properties exists - OK. |
4153 |
04 Mar 11 |
olle |
433 |
:openms_properties_file_end |
4153 |
04 Mar 11 |
olle |
434 |
cd %here% |
4153 |
04 Mar 11 |
olle |
435 |
|
4153 |
04 Mar 11 |
olle |
436 |
rem |
1073 |
18 Dec 06 |
olle |
rem Create proteios log4j.properties file if not existing. |
1073 |
18 Dec 06 |
olle |
438 |
rem |
1073 |
18 Dec 06 |
olle |
439 |
cd %build_dir% |
1073 |
18 Dec 06 |
olle |
440 |
if exist log4j.properties goto log4j_properties_file_ok |
1073 |
18 Dec 06 |
olle |
441 |
echo Creating log config file log4j.properties... |
1073 |
18 Dec 06 |
olle |
442 |
copy log4j.properties.in log4j.properties |
1073 |
18 Dec 06 |
olle |
443 |
goto log4j_properties_file_end |
1073 |
18 Dec 06 |
olle |
444 |
:log4j_properties_file_ok |
1073 |
18 Dec 06 |
olle |
445 |
echo Log config file log4j.properties exists - OK. |
1073 |
18 Dec 06 |
olle |
446 |
:log4j_properties_file_end |
1073 |
18 Dec 06 |
olle |
447 |
cd %here% |
1073 |
18 Dec 06 |
olle |
448 |
|
1073 |
18 Dec 06 |
olle |
449 |
rem |
963 |
23 Nov 06 |
olle |
rem Build class path |
441 |
10 Aug 06 |
jari |
451 |
rem |
963 |
23 Nov 06 |
olle |
452 |
set cp=.\%build_dir% |
441 |
10 Aug 06 |
jari |
453 |
rem |
441 |
10 Aug 06 |
jari |
rem Note: Variables like %cp% are interpreted before a for-statement |
441 |
10 Aug 06 |
jari |
rem is executed, so a for-loop like |
441 |
10 Aug 06 |
jari |
456 |
rem |
963 |
23 Nov 06 |
olle |
rem for %%i in (.\www\WEB-INF\lib\*.jar) do set cp=%cp%;%%i |
441 |
10 Aug 06 |
jari |
458 |
rem |
441 |
10 Aug 06 |
jari |
rem will only add the last of the *.jar files to the %cp% list |
441 |
10 Aug 06 |
jari |
rem after the for-loop is finished. This can be solved by calling |
441 |
10 Aug 06 |
jari |
rem a temporary batch file that updates the %cp% value for each loop. |
441 |
10 Aug 06 |
jari |
rem The contents of the temporary batch file tmp1.bat is |
441 |
10 Aug 06 |
jari |
463 |
rem |
441 |
10 Aug 06 |
jari |
rem set cp=%cp%;%1 |
441 |
10 Aug 06 |
jari |
465 |
rem |
441 |
10 Aug 06 |
jari |
rem where %1 is the argument that will be provided by the |
441 |
10 Aug 06 |
jari |
rem for-loop variable %%i. |
441 |
10 Aug 06 |
jari |
468 |
rem |
441 |
10 Aug 06 |
jari |
469 |
echo set cp=%%cp%%;%%1> tmp1.bat |
963 |
23 Nov 06 |
olle |
470 |
for %%i in (.\www\WEB-INF\lib\*.jar) do call tmp1.bat %%i |
441 |
10 Aug 06 |
jari |
471 |
del tmp1.bat |
441 |
10 Aug 06 |
jari |
472 |
rem |
441 |
10 Aug 06 |
jari |
rem Run proteios java installation program InitDB |
441 |
10 Aug 06 |
jari |
474 |
rem |
963 |
23 Nov 06 |
olle |
rem java -server -cp %cp% org.proteios.install.InitDB %root_pwd% |
1383 |
08 Mar 07 |
olle |
476 |
|
1383 |
08 Mar 07 |
olle |
477 |
rem |
1383 |
08 Mar 07 |
olle |
rem Initialize database. |
1383 |
08 Mar 07 |
olle |
479 |
rem |
2082 |
04 Oct 07 |
olle |
480 |
if not "%update_db%"=="Y" goto no_update |
1383 |
08 Mar 07 |
olle |
481 |
java -cp %cp% org.proteios.install.InitDB update %root_pwd% |
1383 |
08 Mar 07 |
olle |
482 |
goto db_init_end |
2082 |
04 Oct 07 |
olle |
483 |
:no_update |
963 |
23 Nov 06 |
olle |
484 |
java -cp %cp% org.proteios.install.InitDB %root_pwd% |
1383 |
08 Mar 07 |
olle |
485 |
:db_init_end |
441 |
10 Aug 06 |
jari |
486 |
|
441 |
10 Aug 06 |
jari |
487 |
rem |
1001 |
30 Nov 06 |
olle |
rem Create user files directory if not existing. |
1001 |
30 Nov 06 |
olle |
489 |
rem |
1001 |
30 Nov 06 |
olle |
490 |
if exist %user_files_dir% goto user_files_dir_ok |
1001 |
30 Nov 06 |
olle |
491 |
echo Creating user files directory... |
1001 |
30 Nov 06 |
olle |
492 |
mkdir %user_files_dir% |
1001 |
30 Nov 06 |
olle |
493 |
rem |
1001 |
30 Nov 06 |
olle |
rem Check if user files directory exists. |
1001 |
30 Nov 06 |
olle |
495 |
rem |
1001 |
30 Nov 06 |
olle |
496 |
if exist %user_files_dir% goto user_files_dir_ok2 |
1001 |
30 Nov 06 |
olle |
497 |
echo Failed. |
1001 |
30 Nov 06 |
olle |
498 |
echo User files directory could not be created. |
1001 |
30 Nov 06 |
olle |
499 |
echo Create user files directory %user_files_dir% yourself. |
1001 |
30 Nov 06 |
olle |
500 |
goto user_files_dir_end |
1001 |
30 Nov 06 |
olle |
501 |
:user_files_dir_ok2 |
1001 |
30 Nov 06 |
olle |
502 |
echo done |
1001 |
30 Nov 06 |
olle |
503 |
goto user_files_dir_end |
1001 |
30 Nov 06 |
olle |
504 |
:user_files_dir_ok |
1001 |
30 Nov 06 |
olle |
505 |
echo User files directory exists - OK. |
1001 |
30 Nov 06 |
olle |
506 |
:user_files_dir_end |
1001 |
30 Nov 06 |
olle |
507 |
|
1001 |
30 Nov 06 |
olle |
508 |
rem |
2780 |
11 Aug 08 |
olle |
rem Create "conf" directory in user files directory if not existing. |
2780 |
11 Aug 08 |
olle |
510 |
rem |
2780 |
11 Aug 08 |
olle |
511 |
if exist "%user_files_dir%\conf" goto user_files_conf_dir_ok |
2780 |
11 Aug 08 |
olle |
512 |
echo Creating \"conf\" directory in user files directory... |
2780 |
11 Aug 08 |
olle |
513 |
mkdir "%user_files_dir%\conf" |
2780 |
11 Aug 08 |
olle |
514 |
rem |
2780 |
11 Aug 08 |
olle |
rem Check if "conf" directory in user files directory exists. |
2780 |
11 Aug 08 |
olle |
516 |
rem |
2780 |
11 Aug 08 |
olle |
517 |
if exist "%user_files_dir%\conf" goto user_files_conf_dir_ok2 |
2780 |
11 Aug 08 |
olle |
518 |
echo Failed. |
2780 |
11 Aug 08 |
olle |
519 |
echo Directory \"conf\" in user files directory could not be created. |
2780 |
11 Aug 08 |
olle |
520 |
echo Create \"conf\" directory in user files directory %user_files_dir% yourself. |
2780 |
11 Aug 08 |
olle |
521 |
goto user_files_conf_dir_end |
2780 |
11 Aug 08 |
olle |
522 |
:user_files_conf_dir_ok2 |
2780 |
11 Aug 08 |
olle |
523 |
echo done |
2780 |
11 Aug 08 |
olle |
524 |
goto user_files_dir_end |
2780 |
11 Aug 08 |
olle |
525 |
:user_files_conf_dir_ok |
2780 |
11 Aug 08 |
olle |
526 |
echo Directory \"conf\" in user files directory exists - OK. |
2780 |
11 Aug 08 |
olle |
527 |
:user_files_conf_dir_end |
2780 |
11 Aug 08 |
olle |
528 |
|
2780 |
11 Aug 08 |
olle |
529 |
rem |
1046 |
05 Dec 06 |
olle |
rem Create temporary files directory if not existing. |
1046 |
05 Dec 06 |
olle |
531 |
rem |
1046 |
05 Dec 06 |
olle |
532 |
if exist %temp_files_dir% goto temp_files_dir_ok |
1046 |
05 Dec 06 |
olle |
533 |
echo Creating temporary files directory... |
1046 |
05 Dec 06 |
olle |
534 |
mkdir %temp_files_dir% |
1046 |
05 Dec 06 |
olle |
535 |
rem |
1046 |
05 Dec 06 |
olle |
rem Check if temporary files directory exists. |
1046 |
05 Dec 06 |
olle |
537 |
rem |
1046 |
05 Dec 06 |
olle |
538 |
if exist %temp_files_dir% goto temp_files_dir_ok2 |
1046 |
05 Dec 06 |
olle |
539 |
echo Failed. |
1046 |
05 Dec 06 |
olle |
540 |
echo Temporary files directory could not be created. |
1046 |
05 Dec 06 |
olle |
541 |
echo Create temporary files directory %temp_files_dir% yourself. |
1046 |
05 Dec 06 |
olle |
542 |
goto temp_files_dir_end |
1046 |
05 Dec 06 |
olle |
543 |
:temp_files_dir_ok2 |
1046 |
05 Dec 06 |
olle |
544 |
echo done |
1046 |
05 Dec 06 |
olle |
545 |
goto temp_files_dir_end |
1046 |
05 Dec 06 |
olle |
546 |
:temp_files_dir_ok |
1046 |
05 Dec 06 |
olle |
547 |
echo Temporary files directory exists - OK. |
1046 |
05 Dec 06 |
olle |
548 |
:temp_files_dir_end |
1046 |
05 Dec 06 |
olle |
549 |
|
1046 |
05 Dec 06 |
olle |
550 |
rem |
441 |
10 Aug 06 |
jari |
rem Set variable catalina_home (tomcat installation directory) |
441 |
10 Aug 06 |
jari |
552 |
rem |
2780 |
11 Aug 08 |
olle |
553 |
:step_10a |
2780 |
11 Aug 08 |
olle |
554 |
set body_text=10. Let's deploy the web application into tomcat. |
2780 |
11 Aug 08 |
olle |
555 |
set next_step=step_10b |
441 |
10 Aug 06 |
jari |
556 |
goto print |
2780 |
11 Aug 08 |
olle |
557 |
:step_10b |
3546 |
18 Jan 10 |
fredrik |
558 |
if defined catalina_home goto catalina_ok |
441 |
10 Aug 06 |
jari |
559 |
echo Catalina home: > prompt.txt |
441 |
10 Aug 06 |
jari |
560 |
call inp2var.bat catalina_home prompt.txt |
963 |
23 Nov 06 |
olle |
rem echo catalina_home = %catalina_home% |
441 |
10 Aug 06 |
jari |
562 |
:catalina_ok |
441 |
10 Aug 06 |
jari |
563 |
echo. |
441 |
10 Aug 06 |
jari |
564 |
|
441 |
10 Aug 06 |
jari |
565 |
rem |
441 |
10 Aug 06 |
jari |
rem Create link in tomcat webapps directory to proteomics directory |
441 |
10 Aug 06 |
jari |
567 |
rem |
441 |
10 Aug 06 |
jari |
568 |
|
441 |
10 Aug 06 |
jari |
569 |
rem |
441 |
10 Aug 06 |
jari |
rem Store current directory in variable %here% |
441 |
10 Aug 06 |
jari |
571 |
rem |
441 |
10 Aug 06 |
jari |
572 |
cd > prompt.txt |
441 |
10 Aug 06 |
jari |
573 |
call inp2var.bat here prompt.txt no_input |
441 |
10 Aug 06 |
jari |
574 |
echo Deploying %app_name% into %catalina_home% |
963 |
23 Nov 06 |
olle |
575 |
echo ________________________________________________________________________ |
3546 |
18 Jan 10 |
fredrik |
576 |
echo Copying new installation from %here%\www to %catalina_home%\webapps\www. |
3546 |
18 Jan 10 |
fredrik |
577 |
xcopy "%here%"\www "%catalina_home%"\webapps\www /E /I /V /Q |
3546 |
18 Jan 10 |
fredrik |
578 |
if ERRORLEVEL 1 goto failure |
3546 |
18 Jan 10 |
fredrik |
579 |
echo Removing old installation. |
3546 |
18 Jan 10 |
fredrik |
580 |
rmdir "%catalina_home%"\webapps\%app_name% /S /Q |
3546 |
18 Jan 10 |
fredrik |
581 |
if ERRORLEVEL 1 goto failure |
3546 |
18 Jan 10 |
fredrik |
582 |
echo Activating new installation in %catalina_home%\webapps\%app_name%. |
3546 |
18 Jan 10 |
fredrik |
583 |
move "%catalina_home%"\webapps\www "%catalina_home%"\webapps\%app_name% |
3546 |
18 Jan 10 |
fredrik |
584 |
if ERRORLEVEL 1 goto failure |
963 |
23 Nov 06 |
olle |
585 |
echo ________________________________________________________________________ |
963 |
23 Nov 06 |
olle |
586 |
echo. |
441 |
10 Aug 06 |
jari |
587 |
|
441 |
10 Aug 06 |
jari |
588 |
rem |
1068 |
14 Dec 06 |
olle |
rem Update proteios Proteios FTP Server start script (bat-file) |
1068 |
14 Dec 06 |
olle |
590 |
rem |
1068 |
14 Dec 06 |
olle |
591 |
echo Updating Proteios FTP Server start script (bat-file) |
1068 |
14 Dec 06 |
olle |
592 |
cd %here% |
1068 |
14 Dec 06 |
olle |
593 |
rem |
1068 |
14 Dec 06 |
olle |
rem Insert Tomcat installation directory |
2669 |
07 May 08 |
olle |
rem in file proteios_ftp_server.bat.in. |
1068 |
14 Dec 06 |
olle |
596 |
rem |
4000 |
19 Nov 10 |
olle |
597 |
java -jar "%here%"\Replace.jar proteios_ftp_server.bat.in proteios_ftp_server.bat __CATALINA_HOME__="%catalina_home%" |
2794 |
19 Aug 08 |
olle |
598 |
rem |
2794 |
19 Aug 08 |
olle |
rem Insert Tomcat installation directory |
2794 |
19 Aug 08 |
olle |
rem in files proteios_ftp_server_start.bat.in. |
2794 |
19 Aug 08 |
olle |
rem and proteios_ftp_server_stop.bat.in. |
2794 |
19 Aug 08 |
olle |
602 |
rem |
4000 |
19 Nov 10 |
olle |
603 |
java -jar "%here%"\Replace.jar proteios_ftp_server_start.bat.in proteios_ftp_server_start.bat __CATALINA_HOME__="%catalina_home%" |
4000 |
19 Nov 10 |
olle |
604 |
java -jar "%here%"\Replace.jar proteios_ftp_server_stop.bat.in proteios_ftp_server_stop.bat __CATALINA_HOME__="%catalina_home%" |
1068 |
14 Dec 06 |
olle |
605 |
cd %here% |
1068 |
14 Dec 06 |
olle |
606 |
echo. |
1068 |
14 Dec 06 |
olle |
607 |
|
1068 |
14 Dec 06 |
olle |
608 |
rem |
441 |
10 Aug 06 |
jari |
rem Print finishing remarks |
441 |
10 Aug 06 |
jari |
610 |
rem |
2785 |
12 Aug 08 |
olle |
611 |
:step_11a |
441 |
10 Aug 06 |
jari |
612 |
set body_text=%app_name% is now installed. Start tomcat before use. |
2785 |
12 Aug 08 |
olle |
613 |
set next_step=step_11b |
441 |
10 Aug 06 |
jari |
614 |
goto print |
2785 |
12 Aug 08 |
olle |
615 |
:step_11b |
441 |
10 Aug 06 |
jari |
616 |
echo. |
441 |
10 Aug 06 |
jari |
617 |
echo. |
3305 |
10 Jun 09 |
olle |
618 |
rem |
3305 |
10 Jun 09 |
olle |
rem Extra dummy input to keep command prompt window open until input is given |
3305 |
10 Jun 09 |
olle |
620 |
rem |
3305 |
10 Jun 09 |
olle |
621 |
echo Press Enter to finish: > prompt.txt |
3305 |
10 Jun 09 |
olle |
622 |
call inp2var.bat dummy_var prompt.txt |
441 |
10 Aug 06 |
jari |
623 |
|
441 |
10 Aug 06 |
jari |
624 |
goto finish |
441 |
10 Aug 06 |
jari |
625 |
|
441 |
10 Aug 06 |
jari |
626 |
|
441 |
10 Aug 06 |
jari |
627 |
:print |
441 |
10 Aug 06 |
jari |
628 |
rem |
441 |
10 Aug 06 |
jari |
rem Subroutine print |
441 |
10 Aug 06 |
jari |
630 |
rem |
441 |
10 Aug 06 |
jari |
631 |
rem |
441 |
10 Aug 06 |
jari |
rem Prints header text for current step. |
441 |
10 Aug 06 |
jari |
633 |
rem |
441 |
10 Aug 06 |
jari |
634 |
echo. |
441 |
10 Aug 06 |
jari |
635 |
echo. |
441 |
10 Aug 06 |
jari |
636 |
echo %body_text% |
441 |
10 Aug 06 |
jari |
637 |
echo. |
441 |
10 Aug 06 |
jari |
638 |
goto %next_step% |
441 |
10 Aug 06 |
jari |
639 |
|
441 |
10 Aug 06 |
jari |
640 |
|
3546 |
18 Jan 10 |
fredrik |
641 |
:failure |
3546 |
18 Jan 10 |
fredrik |
642 |
echo Activation of installation failed |
3546 |
18 Jan 10 |
fredrik |
643 |
goto step_11b |
3546 |
18 Jan 10 |
fredrik |
644 |
|
441 |
10 Aug 06 |
jari |
645 |
:finish |
441 |
10 Aug 06 |
jari |
646 |
rem |
441 |
10 Aug 06 |
jari |
rem Clear used environment variables |
441 |
10 Aug 06 |
jari |
648 |
rem |
441 |
10 Aug 06 |
jari |
649 |
rem |
441 |
10 Aug 06 |
jari |
rem Remove values of used batch file parameters, |
441 |
10 Aug 06 |
jari |
rem so they cannot be accessed from the command line. |
441 |
10 Aug 06 |
jari |
652 |
rem |
441 |
10 Aug 06 |
jari |
653 |
set db_socket= |
441 |
10 Aug 06 |
jari |
654 |
set sql_client= |
441 |
10 Aug 06 |
jari |
655 |
set app_name= |
441 |
10 Aug 06 |
jari |
656 |
set db_manager= |
441 |
10 Aug 06 |
jari |
657 |
set db_manager_pwd= |
441 |
10 Aug 06 |
jari |
658 |
set db_name= |
2780 |
11 Aug 08 |
olle |
659 |
set db_host= |
441 |
10 Aug 06 |
jari |
660 |
set app_user= |
441 |
10 Aug 06 |
jari |
661 |
set app_user_pwd= |
1001 |
30 Nov 06 |
olle |
662 |
set user_files_dir= |
1044 |
05 Dec 06 |
olle |
663 |
set user_files_dir_slashes= |
1065 |
13 Dec 06 |
olle |
664 |
set ftp_control_port= |
2702 |
15 May 08 |
olle |
665 |
set ftp_passive_port_range= |
2780 |
11 Aug 08 |
olle |
666 |
set mail_server= |
2780 |
11 Aug 08 |
olle |
667 |
set mail_from_address= |
441 |
10 Aug 06 |
jari |
668 |
set sql_exec= |
2366 |
05 Nov 07 |
olle |
669 |
set continue_install= |
441 |
10 Aug 06 |
jari |
670 |
set drop_db= |
441 |
10 Aug 06 |
jari |
671 |
set cp= |
441 |
10 Aug 06 |
jari |
672 |
set body_text= |
441 |
10 Aug 06 |
jari |
673 |
set next_step= |
441 |
10 Aug 06 |
jari |
674 |
set here= |
3305 |
10 Jun 09 |
olle |
675 |
set dummy_var= |
441 |
10 Aug 06 |
jari |
676 |
:end |