From ca797363107865ee6faf48610c11e34708dfa7d4 Mon Sep 17 00:00:00 2001 From: icedream Date: Wed, 28 Oct 2015 23:02:59 +0100 Subject: [PATCH] Revert to old npm_config_wcjs_runtime_version fix and install dependencies as root instead of as app user. --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 2743451..0400e89 100644 --- a/setup.sh +++ b/setup.sh @@ -48,8 +48,8 @@ wget https://github.com/icedream/ts3bot-control/archive/${TS3BOT_COMMIT}.tar.gz /sbin/setuser app tar xzv mv ts3bot-control* ts3bot (cd ts3bot && \ - npm_config_wcjs_runtime="node" npm_config_wcjs_runtime_version="0.12.7" \ - /sbin/setuser app npm install) + npm_config_wcjs_runtime="node" npm_config_wcjs_runtime_version="$(nodejs --version | tr -d 'v')" \ + npm install) # Install youtube-dl (actually done by npm already in a non-system-wide way) #ADD https://yt-dl.org/latest/youtube-dl /usr/local/bin/youtube-dl