From 18fb8a6d9ed7ec3c3801528aeb2193c21d025ea4 Mon Sep 17 00:00:00 2001 From: gemer Date: Wed, 16 Sep 2020 11:44:41 +0800 Subject: [PATCH] add backend install script execute privilege and fixed nodejs with unbunu deprecated libssl1.0-dev --- backend/scripts/install-nodejs.sh | 5 ++--- docker_init.sh | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) 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