Revert to old npm_config_wcjs_runtime_version fix and install dependencies as root instead of as app user.

capabilities
Icedream 2015-10-28 23:02:59 +01:00
parent de8e9274d3
commit ca79736310
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ wget https://github.com/icedream/ts3bot-control/archive/${TS3BOT_COMMIT}.tar.gz
/sbin/setuser app tar xzv /sbin/setuser app tar xzv
mv ts3bot-control* ts3bot mv ts3bot-control* ts3bot
(cd ts3bot && \ (cd ts3bot && \
npm_config_wcjs_runtime="node" npm_config_wcjs_runtime_version="0.12.7" \ npm_config_wcjs_runtime="node" npm_config_wcjs_runtime_version="$(nodejs --version | tr -d 'v')" \
/sbin/setuser app npm install) npm install)
# Install youtube-dl (actually done by npm already in a non-system-wide way) # 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 #ADD https://yt-dl.org/latest/youtube-dl /usr/local/bin/youtube-dl