From 516832270789f6a6261c6433fdc25c2b2311493f Mon Sep 17 00:00:00 2001 From: Moe Date: Tue, 25 Feb 2020 09:00:57 -0800 Subject: [PATCH] add OpenALPR auto key generation during install --- plugins/openalpr/INSTALL.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/openalpr/INSTALL.sh b/plugins/openalpr/INSTALL.sh index b2dd28d4..720bd8e8 100644 --- a/plugins/openalpr/INSTALL.sh +++ b/plugins/openalpr/INSTALL.sh @@ -32,6 +32,10 @@ else echo "conf.json already exists..." fi echo "-----------------------------------" +echo "Adding Random Plugin Key to Main Configuration" + +node $DIR/../../tools/modifyConfigurationForPlugin.js openalpr key=$(head -c 64 < /dev/urandom | sha256sum | awk '{print substr($1,1,60)}') +echo "-----------------------------------" echo "Installing Modules.." apt install node-pre-gyp -y npm install nopt npmlog rimraf semver -g