Switch to unified view

a/vagrant/allura_setup.sh b/vagrant/allura_setup.sh
...
...
45
    cp /home/vagrant/.profile /home/vagrant/.bash_profile
45
    cp /home/vagrant/.profile /home/vagrant/.bash_profile
46
    echo -e "\n# Activate Allura virtualenv\n. /home/vagrant/env-allura/bin/activate && cd /home/vagrant/src/allura" >> /home/vagrant/.bash_profile
46
    echo -e "\n# Activate Allura virtualenv\n. /home/vagrant/env-allura/bin/activate && cd /home/vagrant/src/allura" >> /home/vagrant/.bash_profile
47
    chown vagrant:vagrant /home/vagrant/.bash_profile
47
    chown vagrant:vagrant /home/vagrant/.bash_profile
48
fi
48
fi
49
49
50
# Make sure vagrant user can execute venv bin scripts
51
sudo chown -R vagrant:vagrant /home/vagrant/env-allura/bin/
52
50
# Setup Allura python packages
53
# Setup Allura python packages
51
cd /home/vagrant/src/allura
54
cd /home/vagrant/src/allura
52
sudo -u vagrant bash -c '. /home/vagrant/env-allura/bin/activate; ./rebuild-all.bash'
55
sudo -u vagrant bash -c '. /home/vagrant/env-allura/bin/activate; ./rebuild-all.bash'
53
56
54
echo "Purging unneeded packages..."
57
echo "Purging unneeded packages..."
...
...
56
aptitude -y -q purge ri
59
aptitude -y -q purge ri
57
aptitude -y -q purge installation-report landscape-client landscape-common wireless-tools wpasupplicant
60
aptitude -y -q purge installation-report landscape-client landscape-common wireless-tools wpasupplicant
58
aptitude -y -q purge python-dbus libnl1 python-smartpm linux-headers-server python-twisted-core libiw30 language-selector-common
61
aptitude -y -q purge python-dbus libnl1 python-smartpm linux-headers-server python-twisted-core libiw30 language-selector-common
59
aptitude -y -q purge cloud-init juju python-twisted python-twisted-bin libdbus-glib-1-2 python-pexpect python-serial python-gobject python-pam accountsservice libaccountsservice0
62
aptitude -y -q purge cloud-init juju python-twisted python-twisted-bin libdbus-glib-1-2 python-pexpect python-serial python-gobject python-pam accountsservice libaccountsservice0
60
63
61
echo "Zeroing free space to aid VM compression..."
62
cat /dev/zero > zero.fill;
63
echo "Errors about 'No space left' are ok; carrying on..."
64
sync;sleep 1;sync;rm -f zero.fill
65
dd if=/dev/zero of=/EMPTY bs=1M
66
rm -f /EMPTY
67
echo "Done with allura_setup.sh"
64
echo "Done with allura_setup.sh"
68
65
69
# sometimes mongo ends up stopped
66
# sometimes mongo ends up stopped
70
# maybe due to that disk-filling exercise
67
# maybe due to that disk-filling exercise
71
# make sure it's still running
68
# make sure it's still running