update installers to have audit function

this should automatically clear vulnerabilities on fresh installs.
merge-requests/19/head
Moe 2018-08-11 11:58:15 -07:00
parent b91f64c0fc
commit c7ebf6cee6
5 changed files with 15 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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