]> git.mxchange.org Git - friendica.git/blob - util/vagrant_provision.sh
7507b0715a048b9f990f3263d57b8ea19c17dfe7
[friendica.git] / util / vagrant_provision.sh
1 #!/bin/bash
2 #Script to setup the vagrant instance for running friendica
3 #
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!
6
7 #make the vagrant directory the docroot
8 rm -rf /var/www/
9 ln -fs /vagrant /var/www
10
11 #create the friendica database
12 echo "create database friendica" | mysql -u root -proot
13
14 #create cronjob
15 echo "*/10 * * * * cd /vagrant; /usr/bin/php include/poller.php" >> friendicacron
16 crontab friendicacron
17 rm friendicacron
18
19 #Optional: checkout addon repository
20 #git clone https://github.com/friendica/friendica-addons.git /vagrant/addon