mirror of
https://github.com/friendica/friendica
synced 2024-11-20 12:23:41 +00:00
Merge pull request #7703 from tobiasd/20191001-Vagrant
modified Vagrant devel VM (PHP 7.3, proper composer)
This commit is contained in:
commit
848bfdcfd4
2 changed files with 12 additions and 9 deletions
4
Vagrantfile
vendored
4
Vagrantfile
vendored
|
@ -6,8 +6,8 @@ server_timezone = "UTC"
|
||||||
public_folder = "/vagrant"
|
public_folder = "/vagrant"
|
||||||
|
|
||||||
Vagrant.configure(2) do |config|
|
Vagrant.configure(2) do |config|
|
||||||
# Set server to Ubuntu 16.04
|
# Set server to Debian 10 / Buster 64bit
|
||||||
config.vm.box = "ubuntu/xenial64"
|
config.vm.box = "debian/buster64"
|
||||||
|
|
||||||
# Disable automatic box update checking. If you disable this, then
|
# Disable automatic box update checking. If you disable this, then
|
||||||
# boxes will only be checked for updates when the user runs
|
# boxes will only be checked for updates when the user runs
|
||||||
|
|
|
@ -48,9 +48,9 @@ sudo systemctl restart apache2
|
||||||
|
|
||||||
#Install mysql
|
#Install mysql
|
||||||
echo ">>> Installing Mysql"
|
echo ">>> Installing Mysql"
|
||||||
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password root"
|
sudo debconf-set-selections <<< "mariadb-server mariadb-server/root_password password root"
|
||||||
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password_again password root"
|
sudo debconf-set-selections <<< "mariadb-server mariadb-server/root_password_again password root"
|
||||||
sudo apt-get install -qq mysql-server
|
sudo apt-get install -qq mariadb-server
|
||||||
# enable remote access
|
# enable remote access
|
||||||
# setting the mysql bind-address to allow connections from everywhere
|
# setting the mysql bind-address to allow connections from everywhere
|
||||||
sed -i "s/bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
|
sed -i "s/bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
|
||||||
|
@ -76,6 +76,9 @@ debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Local Only'
|
||||||
sudo apt-get install -y postfix mailutils libmailutils-dev
|
sudo apt-get install -y postfix mailutils libmailutils-dev
|
||||||
sudo echo -e "friendica1: vagrant\nfriendica2: vagrant\nfriendica3: vagrant\nfriendica4: vagrant\nfriendica5: vagrant" >> /etc/aliases && sudo newaliases
|
sudo echo -e "friendica1: vagrant\nfriendica2: vagrant\nfriendica3: vagrant\nfriendica4: vagrant\nfriendica5: vagrant" >> /etc/aliases && sudo newaliases
|
||||||
|
|
||||||
|
# Friendica needs git for fetching some dependencies
|
||||||
|
sudo apt-get install -y git
|
||||||
|
|
||||||
#make the vagrant directory the docroot
|
#make the vagrant directory the docroot
|
||||||
sudo rm -rf /var/www/
|
sudo rm -rf /var/www/
|
||||||
sudo ln -fs /vagrant /var/www
|
sudo ln -fs /vagrant /var/www
|
||||||
|
@ -83,7 +86,7 @@ sudo ln -fs /vagrant /var/www
|
||||||
# install deps with composer
|
# install deps with composer
|
||||||
sudo apt install unzip
|
sudo apt install unzip
|
||||||
cd /var/www
|
cd /var/www
|
||||||
php bin/composer.phar install
|
sudo -u www-data php bin/composer.phar install
|
||||||
|
|
||||||
# initial config file for friendica in vagrant
|
# initial config file for friendica in vagrant
|
||||||
cp /vagrant/mods/local.config.vagrant.php /vagrant/config/local.config.php
|
cp /vagrant/mods/local.config.vagrant.php /vagrant/config/local.config.php
|
||||||
|
|
Loading…
Reference in a new issue