<% def title = 'Edit configuration'; def saved = request.getParameter("config"); def error = null; if (saved) { try { def initFile = new File("etc/init.properties"); initFile.renameTo(new File("etc/init.properties.bak")); initFile.setText(saved); title = "Configuration updated"; } catch (Throwable ex) { error = ex; title = "Error"; } } %> ${ util.include('header', [title:'Setup: ' + title]) }
<% if ((!saved) || (error != null)) { %>
<% if (error) { %>

Update of configuration file failed: ${ex.getMessage()}


<% } else { %>
<% } %>

Do you wish to save this configuration to etc/init.properties file?

<% } else { %>

Configuration file was successfully updated with new configuration.
File with old configuration was backed up as init.properties.bak.

Please restart server to apply new configuration.

<% } %>
${ util.include('footer') }