完善启动脚本

This commit is contained in:
陈精华
2019-04-14 22:45:18 +08:00
committed by kl
parent 5af3a97720
commit 02e116fd8a
3 changed files with 16 additions and 2 deletions

View File

@@ -32,8 +32,10 @@ public class ConfigRefreshComponent {
public void run() {
try {
Properties properties = new Properties();
String userDir = System.getProperty("user.dir");
Properties properties1 = System.getProperties();
String userDir = System.getenv("KKFILEVIEW_BIN_FOLDER");
if (userDir == null) {
System.getProperty("user.dir");
}
if (userDir.endsWith("bin")) {
userDir = userDir.substring(0, userDir.length() - 4);
}