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 #create the friendica database
12 echo "create database friendica" | mysql -u root -proot
15 echo "*/10 * * * * cd /vagrant; /usr/bin/php include/poller.php" >> friendicacron
19 #Optional: checkout addon repository
20 #git clone https://github.com/friendica/friendica-addons.git /vagrant/addon