diff --git a/backend/scripts/install-nodejs.sh b/backend/scripts/install-nodejs.sh index 802e001e..61b4d778 100644 --- a/backend/scripts/install-nodejs.sh +++ b/backend/scripts/install-nodejs.sh @@ -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 diff --git a/docker_init.sh b/docker_init.sh index dfef4eaf..cd2fd811 100755 --- a/docker_init.sh +++ b/docker_init.sh @@ -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