add OpenALPR auto key generation during install

revert-b25c0d81
Moe 2020-02-25 09:00:57 -08:00
parent 519c5e7863
commit 5168322707
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ else
echo "conf.json already exists..." echo "conf.json already exists..."
fi fi
echo "-----------------------------------" 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.." echo "Installing Modules.."
apt install node-pre-gyp -y apt install node-pre-gyp -y
npm install nopt npmlog rimraf semver -g npm install nopt npmlog rimraf semver -g