mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
db: Fix deploydb, make sure scripts are in path
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
This commit is contained in:
parent
357b4e63ac
commit
a32c6d5c9d
@ -183,6 +183,10 @@
|
|||||||
<key>catalina.home</key>
|
<key>catalina.home</key>
|
||||||
<value>${project.parent.basedir}/utils</value>
|
<value>${project.parent.basedir}/utils</value>
|
||||||
</systemProperty>
|
</systemProperty>
|
||||||
|
<systemProperty>
|
||||||
|
<key>paths.script</key>
|
||||||
|
<value>${basedir}/target/db</value>
|
||||||
|
</systemProperty>
|
||||||
</systemProperties>
|
</systemProperties>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|||||||
@ -449,6 +449,12 @@ public class Script implements Callable<String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file = new File(System.getProperty("paths.script") + File.separator + path + File.separator + script);
|
||||||
|
if (file.exists()) {
|
||||||
|
return file.getAbsolutePath();
|
||||||
|
}
|
||||||
|
|
||||||
s_logger.warn("Unable to find script " + script);
|
s_logger.warn("Unable to find script " + script);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user