2 #Script to setup the vagrant instance for running friendica
4 #DO NOT RUN on your physical machine as this won't be of any use
5 #and f.e. deletes your /var/www/ folder!
7 #make the vagrant directory the docroot
9 ln -fs /vagrant /var/www
11 #delete .htconfig.php file if it exists to have a fresh friendica
13 if [ -f /vagrant/.htconfig.php ]
15 rm /vagrant/.htconfig.php
18 #create the friendica database
19 echo "create database friendica" | mysql -u root -proot
22 echo "*/10 * * * * cd /vagrant; /usr/bin/php include/poller.php" >> friendicacron
26 #Optional: checkout addon repositroy
27 #git clone https://github.com/friendica/friendica-addons.git /vagrant/addon