From b544fe12ae10cb340b9350c0dba63bd30c99c788 Mon Sep 17 00:00:00 2001 From: uniomni Ole Nielsen Date: Wed, 19 Jan 2011 14:12:30 +0700 Subject: [PATCH] Forgot internal geoserver start --- installation/__geoserver_start__.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 installation/__geoserver_start__.py diff --git a/installation/__geoserver_start__.py b/installation/__geoserver_start__.py new file mode 100644 index 0000000..6e7ebaa --- /dev/null +++ b/installation/__geoserver_start__.py @@ -0,0 +1,19 @@ +"""Start Geoserver instance locally - internal script +Must be run as sudo +""" + +import sys, os, commands +import platform +from install_geoserver import run_startup + +s = commands.getoutput('whoami') +if s != 'root': + print + print 'Script must be run as root e.g. using: sudo python %s' % sys.argv[0] + import sys; sys.exit() + +# Start geoserver +run_startup() + + +