Commit 45a942c1 authored by Son Nguyen's avatar Son Nguyen

Initialise ssh and bzr environment for first installation

Change-Id: I2ed0467509275d23ee1c31adedea871763403096
parent 0207b4f1
......@@ -25,6 +25,13 @@ case "$1" in
mkdir /home/maharabot/.ssh
ssh-keygen -q -t rsa -N '' -f /home/maharabot/.ssh/id_rsa
chown -R maharabot /home/maharabot/.ssh
echo "Please add the following public key to Launchpad.net https://launchpad.net/~dev-mahara/+editsshkeys"
echo "### Begin of the public key###"
cat /home/maharabot/.ssh/id_rsa.pub
echo "### End of the public key###"
sudo -u maharabot -sH ssh-keyscan -H bazaar.launchpad.net > /home/maharabot/.ssh/known_hosts
chown maharabot /home/maharabot/.ssh/known_hosts
sudo -u maharabot -sH bzr whoami "Mahara Bot <dev@mahara.org>"
fi
if [ ! -d /var/www/mahara-langpacks ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment