Set script version-lookup path to match docker structure.
This commit is contained in:
@@ -13,7 +13,7 @@ from datetime import datetime
|
||||
|
||||
# Pull script version from previous
|
||||
VERSION = '0.0.0'
|
||||
with open("./custom-services.d/ARLChecker", "r") as r:
|
||||
with open("/custom-services.d/ARLChecker", "r") as r:
|
||||
for line in r:
|
||||
if 'scriptVersion' in line:
|
||||
VERSION = re.search(r'"([A-Za-z0-9_\./\\-]*)"', line)[0].replace('"','')
|
||||
|
||||
Reference in New Issue
Block a user