|
a/vagrant/allura_setup.sh |
|
b/vagrant/allura_setup.sh |
|
... |
|
... |
28 |
mkdir -p /home/vagrant/src/allura/solr_config/conf
|
28 |
mkdir -p /home/vagrant/src/allura/solr_config/conf
|
29 |
cp solr/conf/solrconfig.xml /home/vagrant/src/allura/solr_config/conf/
|
29 |
cp solr/conf/solrconfig.xml /home/vagrant/src/allura/solr_config/conf/
|
30 |
chown -R vagrant:vagrant /home/vagrant/src/apache-solr* /home/vagrant/src/allura/solr_config/conf/
|
30 |
chown -R vagrant:vagrant /home/vagrant/src/apache-solr* /home/vagrant/src/allura/solr_config/conf/
|
31 |
fi
|
31 |
fi
|
32 |
|
32 |
|
33 |
# Create log dir
|
|
|
34 |
if [ ! -d /var/log/allura ]
|
|
|
35 |
then
|
|
|
36 |
sudo mkdir -p /var/log/allura
|
|
|
37 |
sudo chown vagrant:vagrant /var/log/allura
|
|
|
38 |
fi
|
|
|
39 |
|
|
|
40 |
# Create startup script
|
33 |
# Create startup script
|
41 |
if [ ! -f /home/vagrant/start_allura ]
|
34 |
if [ ! -f /home/vagrant/start_allura ]
|
42 |
then
|
35 |
then
|
43 |
echo "Creating ~/start_allura script..."
|
36 |
echo "Creating ~/start_allura script..."
|
44 |
cp /vagrant/start_allura /home/vagrant
|
37 |
cp /vagrant/start_allura /home/vagrant
|
|
... |
|
... |
48 |
# Create .bash_profile with venv activation
|
41 |
# Create .bash_profile with venv activation
|
49 |
if [ ! -f /home/vagrant/.bash_profile ]
|
42 |
if [ ! -f /home/vagrant/.bash_profile ]
|
50 |
then
|
43 |
then
|
51 |
echo "Creating ~/.bash_profile ..."
|
44 |
echo "Creating ~/.bash_profile ..."
|
52 |
cp /home/vagrant/.profile /home/vagrant/.bash_profile
|
45 |
cp /home/vagrant/.profile /home/vagrant/.bash_profile
|
53 |
echo -e "\n# Activate Allura virtualenv\n. /home/vagrant/anvil/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
|
54 |
chown vagrant:vagrant /home/vagrant/.bash_profile
|
47 |
chown vagrant:vagrant /home/vagrant/.bash_profile
|
55 |
fi
|
48 |
fi
|
56 |
|
49 |
|
57 |
# Setup Allura python packages
|
50 |
# Setup Allura python packages
|
58 |
cd /home/vagrant/src/allura
|
51 |
cd /home/vagrant/src/allura
|
59 |
sudo -u vagrant bash -c '. /home/vagrant/anvil/bin/activate; ./rebuild-all.bash'
|
52 |
sudo -u vagrant bash -c '. /home/vagrant/env-allura/bin/activate; ./rebuild-all.bash'
|
60 |
|
53 |
|
61 |
echo "Purging unneeded packages..."
|
54 |
echo "Purging unneeded packages..."
|
62 |
aptitude clean
|
55 |
aptitude clean
|
63 |
aptitude -y -q purge ri
|
56 |
aptitude -y -q purge ri
|
64 |
aptitude -y -q purge installation-report landscape-client landscape-common wireless-tools wpasupplicant
|
57 |
aptitude -y -q purge installation-report landscape-client landscape-common wireless-tools wpasupplicant
|