Checking two locations for serve.

This commit is contained in:
Roland 2022-03-09 19:22:37 -07:00
parent d453ef07cd
commit 998c7401c9
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -28,7 +28,7 @@ pip3 --version || (
pip3 install -r /opt/wrolpi/requirements.txt
# Build React app
[ ! -f /usr/local/bin/serve ] && npm -g install serve
[[ ! -f /usr/local/bin/serve || ! -f /usr/bin/serve ]] && npm -g install serve
cd /opt/wrolpi/app || exit 5
npm install || npm install || npm install || npm install # try install multiple times
npm run build