]> git.mxchange.org Git - friendica.git/blob - util/vagrant_provision.sh
adjusted configuration due to problems with mailcatcher
[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 #delete .htconfig.php file if it exists to have a fresh friendica 
12 #installation
13 if [ -f /vagrant/.htconfig.php ]
14   then
15     rm /vagrant/.htconfig.php
16 fi
17
18 #create the friendica database
19 echo "create database friendica" | mysql -u root -proot
20
21 #create cronjob
22 echo "*/10 * * * * cd /vagrant; /usr/bin/php include/poller.php" >> friendicacron
23 crontab friendicacron
24 rm friendicacron
25
26 #Optional: checkout addon repositroy
27 #git clone https://github.com/friendica/friendica-addons.git /vagrant/addon