add backend install script execute privilege and fixed nodejs with unbunu deprecated libssl1.0-dev

This commit is contained in:
gemer
2020-09-16 11:44:41 +08:00
parent bc9586782c
commit 1cac70b22b
2 changed files with 5 additions and 3 deletions

View File

@@ -10,9 +10,8 @@ touch /tmp/install.lock
touch /tmp/install-nodejs.lock
# install node.js
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get update && apt install -y nodejs nodejs-dev node-gyp libssl1.0-dev
apt-get update && apt install -y npm
curl -sL https://deb.nodesource.com/setup_12.x | bash -
apt-get update && apt install -y nodejs
# install chromium
# See https://crbug.com/795759

View File

@@ -22,6 +22,9 @@ fi
# start nginx
service nginx start
#grant script
chmod +x /app/backend/scripts/*.sh
# install languages
if [ "${CRAWLAB_SERVER_LANG_NODE}" = "Y" ] || [ "${CRAWLAB_SERVER_LANG_JAVA}" = "Y" ] || [ "${CRAWLAB_SERVER_LANG_DOTNET}" = "Y" ] || [ "${CRAWLAB_SERVER_LANG_PHP}" = "Y" ] || [ "${CRAWLAB_SERVER_LANG_GO}" = "Y" ];
then