mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 03:25:15 +02:00
Merge pull request #1028 from tugelbend/master
Vagrant configuration to instantiate development boxes easily
This commit is contained in:
commit
64946972b2
3 changed files with 293 additions and 0 deletions
27
util/vagrant_provision.sh
Normal file
27
util/vagrant_provision.sh
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
#Script to setup the vagrant instance for running friendica
|
||||
#
|
||||
#DO NOT RUN on your physical machine as this won't be of any use
|
||||
#and f.e. deletes your /var/www/ folder!
|
||||
|
||||
#make the vagrant directory the docroot
|
||||
rm -rf /var/www/
|
||||
ln -fs /vagrant /var/www
|
||||
|
||||
#delete .htconfig.php file if it exists to have a fresh friendica
|
||||
#installation
|
||||
if [ -f /vagrant/.htconfig.php ]
|
||||
then
|
||||
rm /vagrant/.htconfig.php
|
||||
fi
|
||||
|
||||
#create the friendica database
|
||||
echo "create database friendica" | mysql -u root -proot
|
||||
|
||||
#create cronjob
|
||||
echo "*/10 * * * * cd /vagrant; /usr/bin/php include/poller.php" >> friendicacron
|
||||
crontab friendicacron
|
||||
rm friendicacron
|
||||
|
||||
#Optional: checkout addon repositroy
|
||||
#git clone https://github.com/friendica/friendica-addons.git /vagrant/addon
|
Loading…
Add table
Add a link
Reference in a new issue