Ubuntu Pastebin

Paste from mattyw at Wed, 31 Aug 2016 11:23:11 +0000

Download as text
1
2
3
4
5
6
#!/bin/bash
set -e
PASSWORD=`juju ssh -m default 0 "sudo grep oldpassword /var/lib/juju/agents/machine-*/agent.conf  | cut -d' ' -f2"`
juju ssh -m default 0 sudo apt-get install juju-mongodb
PASSWORD=`echo ${PASSWORD} | perl -lpe 's/[^[:print:]]//g'`
juju ssh -m default 0 "mongo 127.0.0.1:37017/juju --ssl --username admin --password ${PASSWORD}"
Download as text