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() + + +