4371 |
26 Oct 12 |
olle |
#!/bin/bash |
3135 |
24 Feb 09 |
gregory |
2 |
|
3141 |
25 Feb 09 |
gregory |
# $Id$ |
3135 |
24 Feb 09 |
gregory |
4 |
|
3135 |
24 Feb 09 |
gregory |
# Copyright (C) 2006, 2007, 2009 Gregory Vincic, Olle Mansson |
3135 |
24 Feb 09 |
gregory |
6 |
|
3135 |
24 Feb 09 |
gregory |
# Files are copyright by their respective authors. The contributions to |
3135 |
24 Feb 09 |
gregory |
# files where copyright is not explicitly stated can be traced with the |
3135 |
24 Feb 09 |
gregory |
# source code revision system. |
3135 |
24 Feb 09 |
gregory |
10 |
|
3135 |
24 Feb 09 |
gregory |
# This file is part of Proteios. |
3135 |
24 Feb 09 |
gregory |
# Available at http://www.proteios.org/ |
3135 |
24 Feb 09 |
gregory |
13 |
|
3135 |
24 Feb 09 |
gregory |
# Proteios is free software; you can redistribute it and/or |
3135 |
24 Feb 09 |
gregory |
# modify it under the terms of the GNU General Public License |
3135 |
24 Feb 09 |
gregory |
# as published by the Free Software Foundation; either version 2 |
3135 |
24 Feb 09 |
gregory |
# of the License, or (at your option) any later version. |
3135 |
24 Feb 09 |
gregory |
18 |
|
3135 |
24 Feb 09 |
gregory |
# Proteios is distributed in the hope that it will be useful, |
3135 |
24 Feb 09 |
gregory |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
3135 |
24 Feb 09 |
gregory |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3135 |
24 Feb 09 |
gregory |
# GNU General Public License for more details. |
3135 |
24 Feb 09 |
gregory |
23 |
|
3135 |
24 Feb 09 |
gregory |
# You should have received a copy of the GNU General Public License |
3135 |
24 Feb 09 |
gregory |
# along with this program; if not, write to the Free Software |
3135 |
24 Feb 09 |
gregory |
# Foundation, Inc., 59 Temple Place - Suite 330, |
3135 |
24 Feb 09 |
gregory |
# Boston, MA 02111-1307, USA. |
3135 |
24 Feb 09 |
gregory |
28 |
|
3135 |
24 Feb 09 |
gregory |
# This script should only be run to update an existing installation |
3135 |
24 Feb 09 |
gregory |
30 |
|
3289 |
02 Jun 09 |
gregory |
31 |
if [ -e classes/proteios.config ]; then |
3135 |
24 Feb 09 |
gregory |
32 |
|
3135 |
24 Feb 09 |
gregory |
33 |
stty -echo |
3135 |
24 Feb 09 |
gregory |
34 |
read -p "Proteios SE password for root: " APP_ROOT_PWD; echo |
3135 |
24 Feb 09 |
gregory |
35 |
stty echo |
3135 |
24 Feb 09 |
gregory |
36 |
|
3135 |
24 Feb 09 |
gregory |
# Build classpath |
3135 |
24 Feb 09 |
gregory |
38 |
CP=classes |
3135 |
24 Feb 09 |
gregory |
39 |
for i in `ls lib/*.jar`; do CP=${CP}:${i}; done |
3135 |
24 Feb 09 |
gregory |
40 |
|
3135 |
24 Feb 09 |
gregory |
# Initialize database |
3135 |
24 Feb 09 |
gregory |
42 |
java -server -cp $CP org.proteios.install.InitDB update $APP_ROOT_PWD |
3135 |
24 Feb 09 |
gregory |
43 |
else |
3289 |
02 Jun 09 |
gregory |
44 |
echo "Missing classes/proteios.config! If this is a new installation you should use ./init" |
3135 |
24 Feb 09 |
gregory |
45 |
fi |
3135 |
24 Feb 09 |
gregory |
46 |
|
3135 |
24 Feb 09 |
gregory |
47 |
|
3135 |
24 Feb 09 |
gregory |
48 |
|