From f9abb07cc479008c6ee7f72e0c911768c7c9bd82 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 6 Jun 2014 16:04:15 -0400 Subject: Add server install option to turn on debugging Use this in the testsuite so we can get meaningful output in the logs when something fails. Signed-off-by: Simo Sorce --- ipsilon/install/ipsilon-server-install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipsilon/install/ipsilon-server-install') diff --git a/ipsilon/install/ipsilon-server-install b/ipsilon/install/ipsilon-server-install index 1bf0072..1ffd594 100755 --- a/ipsilon/install/ipsilon-server-install +++ b/ipsilon/install/ipsilon-server-install @@ -102,7 +102,8 @@ def install(plugins, args): 'datadir': args['data_dir'], 'sysuser': args['system_user'], 'ipsilondir': BINDIR, - 'staticdir': STATICDIR} + 'staticdir': STATICDIR, + 'debugging': "True" if args['server_debugging'] else "False"} if WSGI_SOCKET_PREFIX: confopts['wsgi_socket'] = 'WSGISocketPrefix %s' % WSGI_SOCKET_PREFIX files.write_from_template(ipsilon_conf, @@ -216,6 +217,8 @@ def parse_args(plugins): help="User account that is assigned admin privileges") parser.add_argument('--config-profile', default=None, help="File containing install options") + parser.add_argument('--server-debugging', action='store_true', + help="Uninstall the server and all data") parser.add_argument('--uninstall', action='store_true', help="Uninstall the server and all data") -- cgit