source: trunk/client/servlet/www/WEB-INF/update.sh @ 3540

Last change on this file since 3540 was 3540, checked in by Gregory Vincic, 13 years ago

Refs #641. Renaming scripts related to linux installation using suffix .sh for shell scripts. Also install.sh was updated to validate CATALINA_HOME and removing unused files from previous installations.

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1#!/bin/sh
2
3# $Id: update.sh 3540 2010-01-11 13:27:28Z gregory $
4
5#  Copyright (C) 2006, 2007, 2009 Gregory Vincic, Olle Mansson
6
7#  Files are copyright by their respective authors. The contributions to
8#  files where copyright is not explicitly stated can be traced with the
9#  source code revision system.
10
11#  This file is part of Proteios.
12#  Available at http://www.proteios.org/
13
14#  Proteios is free software; you can redistribute it and/or
15#  modify it under the terms of the GNU General Public License
16#  as published by the Free Software Foundation; either version 2
17#  of the License, or (at your option) any later version.
18
19#  Proteios is distributed in the hope that it will be useful,
20#  but WITHOUT ANY WARRANTY; without even the implied warranty of
21#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22#  GNU General Public License for more details.
23
24#  You should have received a copy of the GNU General Public License
25#  along with this program; if not, write to the Free Software
26#  Foundation, Inc., 59 Temple Place - Suite 330,
27#  Boston, MA  02111-1307, USA.
28
29# This script should only be run to update an existing installation
30
31if [ -e classes/proteios.config ]; then
32
33stty -echo
34read -p "Proteios SE password for root: " APP_ROOT_PWD; echo
35stty echo
36
37# Build classpath
38CP=classes
39for i in `ls lib/*.jar`; do CP=${CP}:${i}; done
40
41# Initialize database
42java -server -cp $CP org.proteios.install.InitDB update $APP_ROOT_PWD
43else
44  echo "Missing classes/proteios.config! If this is a new installation you should use ./init"
45fi
46
47
48
Note: See TracBrowser for help on using the repository browser.