Skip to content

Commit a32c6d5

Browse files
committed
db: Fix deploydb, make sure scripts are in path
Signed-off-by: Rohit Yadav <[email protected]>
1 parent 357b4e6 commit a32c6d5

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

developer/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@
183183
<key>catalina.home</key>
184184
<value>${project.parent.basedir}/utils</value>
185185
</systemProperty>
186+
<systemProperty>
187+
<key>paths.script</key>
188+
<value>${basedir}/target/db</value>
189+
</systemProperty>
186190
</systemProperties>
187191
</configuration>
188192
</plugin>

utils/src/com/cloud/utils/script/Script.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,12 @@ public static String findScript(String path, String script) {
449449
}
450450

451451
}
452+
453+
file = new File(System.getProperty("paths.script") + File.separator + path + File.separator + script);
454+
if (file.exists()) {
455+
return file.getAbsolutePath();
456+
}
457+
452458
s_logger.warn("Unable to find script " + script);
453459
return null;
454460
}

0 commit comments

Comments
 (0)