#1784 suppress angular-cli interactive install (#1802)

This commit is contained in:
Christian Rotzoll
2020-11-24 23:25:33 +01:00
committed by rootzoll
parent c6f434acaf
commit fe694614af
2 changed files with 5 additions and 3 deletions

View File

@@ -46,7 +46,8 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
export NG_CLI_ANALYTICS=ci
NG_CLI_ANALYTICS=ci
echo "# install angular CLI"
npm install -g @angular/cli
sudo apt install -y yes
yes | npm install -g @angular/cli
echo "# link ng"
sudo ln -sf /usr/local/lib/nodejs/node-$VERSION-$DISTRO/bin/ng /usr/bin/ng
echo "# explicit trun off statistics report"

View File

@@ -133,14 +133,15 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
echo "# npm install for mempool explorer (frontend)"
cd frontend
sudo -u mempool bash -c "echo 'NG_CLI_ANALYTICS=ci' >> /home/mempool/.bashrc"
sudo -u mempool ng analytics off
sudo -u mempool npm install
yes | sudo -u mempool npm install
sudo -u mempool npm run build
echo "# npm install for mempool explorer (backend)"
cd ../backend/
sudo -u mempool npm install
yes | sudo -u mempool npm install
sudo -u mempool npm run build
sudo -u mempool touch cache.json
if ! [ $? -eq 0 ]; then