Skip to content

Commit 2283791

Browse files
committed
111
1 parent 4a3c8ba commit 2283791

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

OpenFlow/src/Config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Util } from "./Util";
1010

1111
export class Config {
1212
public static reload(): void {
13-
Config.version = (fs.existsSync("VERSION") ? fs.readFileSync("VERSION", "utf8") : "UNKNOWN-VERSION");
13+
Config.version = (fs.existsSync("VERSION") ? fs.readFileSync("VERSION", "utf8") : "1.0.34");
1414

1515
Config.NODE_ENV = Config.getEnv("NODE_ENV", "development");
1616

@@ -74,7 +74,7 @@ export class Config {
7474
Config.nodered_initial_liveness_delay = parseInt(Config.getEnv("nodered_initial_liveness_delay", "60"));
7575
}
7676
public static db: DatabaseConnection = null;
77-
public static version: string = (fs.existsSync("VERSION") ? fs.readFileSync("VERSION", "utf8") : "UNKNOWN-VERSION");
77+
public static version: string = (fs.existsSync("VERSION") ? fs.readFileSync("VERSION", "utf8") : "1.0.34");
7878

7979
public static NODE_ENV: string = Config.getEnv("NODE_ENV", "development");
8080

OpenFlowNodeRED/src/Config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class Config {
4545

4646
Config.amqp_message_ttl = parseInt(Config.getEnv("amqp_message_ttl", "20000"));
4747
}
48-
public static version: string = (fs.existsSync("VERSION") ? fs.readFileSync("VERSION", "utf8") : "UNKNOWN-VERSION");
48+
public static version: string = (fs.existsSync("VERSION") ? fs.readFileSync("VERSION", "utf8") : "1.0.34");
4949
public static nodered_id: string = Config.getEnv("nodered_id", "1");
5050
public static nodered_sa: string = Config.getEnv("nodered_sa", "");
5151

OpenFlowNodeRED/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env node
21
import * as winston from "winston";
32
import * as http from "http";
43

0 commit comments

Comments
 (0)