}
protected void runScript(Connection conn, File file) {
try(FileReader reader = new FileReader(file);) {
ScriptRunner runner = new ScriptRunner(conn, false, true);
runner.runScript(reader);
} catch (FileNotFoundException e) {
s_logger.error("Unable to find upgrade script: " + file.getAbsolutePath(), e);
throw new CloudRuntimeException("Unable to find upgrade script: " + file.getAbsolutePath(), e);
} catch (IOException e) {
s_logger.error("Unable to read upgrade script: " + file.getAbsolutePath(), e);