Compare commits

...

2 Commits

Author SHA1 Message Date
AJ ONeal 9d4489f36a remove node installer tmp file 2017-11-01 23:20:02 -06:00
AJ ONeal b1b43a6257 fix adduser options 2017-11-01 23:19:12 -06:00
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
sudo adduser --home /opt/digd.js --gecos '' --nopasswd --disabled-password digd sudo adduser --home /opt/digd.js --gecos '' --disabled-password digd
sudo mkdir -p /opt/digd.js/ /srv/digd.js /var/log/digd.js sudo mkdir -p /opt/digd.js/ /srv/digd.js /var/log/digd.js
sudo mkdir -p /opt/digd.js /srv/digd.js sudo mkdir -p /opt/digd.js /srv/digd.js
chown $(whoami):$(whoami) /opt/digd.js /srv/digd.js chown $(whoami):$(whoami) /opt/digd.js /srv/digd.js
@ -10,6 +10,7 @@ export NODE_PATH=/opt/digd.js/lib/node_modules
export NPM_CONFIG_PREFIX=/opt/digd.js export NPM_CONFIG_PREFIX=/opt/digd.js
curl -fsSL https://bit.ly/install-min-node -o ./install-node.sh.tmp curl -fsSL https://bit.ly/install-min-node -o ./install-node.sh.tmp
bash ./install-node.sh.tmp bash ./install-node.sh.tmp
rm ./install-node.sh.tmp
/opt/digd.js/bin/npm install -g npm@4 /opt/digd.js/bin/npm install -g npm@4
git clone https://git.coolaj86.com/coolaj86/digd.js /opt/digd.js/lib/node_modules/digd.js git clone https://git.coolaj86.com/coolaj86/digd.js /opt/digd.js/lib/node_modules/digd.js