Commit 2f48438e authored by Aaron Wells's avatar Aaron Wells
Browse files

Adding a script to help with VM customization

parent 21962055
# This is a shell script to assist non-technical users in customizing the git environment
# in a VM that already has Mahara installed.
echo "Please enter your name (e.g. \"Mike O'Connor\"): "
read name
echo "Please enter your email address: "
read email
echo ""
echo "Setting up \"${name} <${email}>\..."
echo ""
cd $wwwroot
git config --global $name
git config --global $email
mkdir $sshdir >> /dev/null 2>&1
mkdir $desktopdir >> /dev/null 2>&1
chmod 700 $sshdir
if [ ! -f $sshdir/ ]; then
ssh-keygen -t rsa -b 4096 -C $email -f $sshdir/id_rsa -N ""
cp $sshdir/ $desktopdir/
echo ""
echo "Almost done! Now you need to enter your public SSH key into your Gerrit account."
echo ""
echo "1. Open up the text file \"\" on your VM's desktop."
echo "2. Copy its contents to the clipboard."
echo "3. Go to"
echo "4. Click the \"Add Key ...\" button."
echo "5. Paste the contents of \"\" into the text field."
echo "6. Click the \"Add\" button."
echo ""
echo "Then you should be able to push patches to Mahara's Gerrit, using \"make push\"!"
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