update installers to have audit function
this should automatically clear vulnerabilities on fresh installs.merge-requests/19/head
parent
b91f64c0fc
commit
c7ebf6cee6
|
@ -133,7 +133,9 @@ else
|
|||
fi
|
||||
echo "============="
|
||||
echo "Shinobi - Install NPM Libraries"
|
||||
sudo npm install
|
||||
sudo npm i npm -g
|
||||
sudo npm install --unsafe-perm
|
||||
sudo npm audit fix --unsafe-perm
|
||||
echo "============="
|
||||
echo "Shinobi - Install PM2"
|
||||
sudo npm install pm2 -g
|
||||
|
|
|
@ -41,7 +41,9 @@ if ( $mysqlagreeData == "y" ) then
|
|||
endif
|
||||
echo "============="
|
||||
echo "Shinobi - Install NPM Libraries"
|
||||
npm install
|
||||
npm i npm -g
|
||||
npm install --unsafe-perm
|
||||
npm audit fix --unsafe-perm
|
||||
echo "============="
|
||||
echo "Shinobi - Install PM2"
|
||||
npm install pm2 -g
|
||||
|
|
|
@ -49,7 +49,9 @@ if [ "$mysqlagreeData" = "y" ]; then
|
|||
fi
|
||||
echo "============="
|
||||
echo "Shinobi - Install NPM Libraries"
|
||||
sudo npm install
|
||||
sudo npm i npm -g
|
||||
sudo npm install --unsafe-perm
|
||||
sudo npm audit fix --unsafe-perm
|
||||
echo "============="
|
||||
echo "Shinobi - Install PM2"
|
||||
sudo npm install pm2 -g
|
||||
|
|
|
@ -147,7 +147,9 @@ fi
|
|||
# Install NPM Libraries
|
||||
echo "============="
|
||||
echo "Shinobi - Install NPM Libraries"
|
||||
npm install
|
||||
sudo npm i npm -g
|
||||
sudo npm install --unsafe-perm
|
||||
sudo npm audit fix --unsafe-perm
|
||||
echo "============="
|
||||
|
||||
#Install PM2
|
||||
|
|
|
@ -147,7 +147,9 @@ else
|
|||
fi
|
||||
echo "============="
|
||||
echo "Shinobi - Install NPM Libraries"
|
||||
sudo npm install
|
||||
sudo npm i npm -g
|
||||
sudo npm install --unsafe-perm
|
||||
sudo npm audit fix --unsafe-perm
|
||||
echo "============="
|
||||
echo "Shinobi - Install PM2"
|
||||
sudo npm install pm2 -g
|
||||
|
|
Loading…
Reference in New Issue