File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1+
2+ [35m[1mThe shared directory is located at /vagrant
3+ To access your shared files: cd /vagrant(B[m
Original file line number Diff line number Diff line change 1-
21apt-get -qqy update
32apt-get -qqy install postgresql python-psycopg2
43apt-get -qqy install python-flask python-sqlalchemy
@@ -11,3 +10,13 @@ su postgres -c 'createuser -dRS vagrant'
1110su vagrant -c ' createdb'
1211su vagrant -c ' createdb forum'
1312su vagrant -c ' psql forum -f /vagrant/forum/forum.sql'
13+
14+ alertAlreadyAdded=$( grep -c " vagrantTip.txt" /home/vagrant/.bashrc)
15+ if [ $alertAlreadyAdded -eq 0 ]
16+ then
17+ echo -e " \n# Print instructions to access vagrant shared directory\ncat /vagrant/.vagrantTip.txt\n" >> /home/vagrant/.bashrc
18+ echo " Shared folder alert added to .bashrc"
19+ else
20+ echo " Shared folder alert already present"
21+ fi
22+
You can’t perform that action at this time.
0 commit comments