python-software-properties \
software-properties-common
-NODE_VERSION=0.8.26
+NODE_VERSION=0.10.31
DEBDIST=`lsb_release -c -s`
echo "Trying to install xTuple for platform ${DEBDIST}"
sudo nvm alias default $NODE_VERSION
sudo nvm alias xtuple $NODE_VERSION
+ # use latest npm
+ sudo npm install -fg npm@1.4.25
# npm no longer supports its self-signed certificates
log "telling npm to use known registrars..."
npm config set ca ""
cdir $XT_DIR/node-datasource/lib/private
cat /dev/urandom | tr -dc '0-9a-zA-Z!@#$%^&*_+-'| head -c 64 > salt.txt
log "Created salt"
+ cat /dev/urandom | tr -dc '0-9a-zA-Z!@#$%^&*_+-'| head -c 64 > encryption_key.txt
+ log "Created encryption key"
openssl genrsa -des3 -out server.key -passout pass:xtuple 1024 2>&1 | tee -a $LOG_FILE
openssl rsa -in server.key -passin pass:xtuple -out key.pem -passout pass:xtuple 2>&1 | tee -a $LOG_FILE
openssl req -batch -new -key key.pem -out server.csr -subj '/CN='$(hostname) 2>&1 | tee -a $LOG_FILE