]> git.mxchange.org Git - friendica.git/commitdiff
added git as dependency for the Vagrant VM and made the call to compuser with www...
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 4 Oct 2019 09:40:39 +0000 (11:40 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Fri, 4 Oct 2019 09:40:39 +0000 (11:40 +0200)
bin/dev/vagrant_provision.sh

index 82c65e8afe0774220af7ff4909601517c7165182..dc24f8799470693d8d7dc362b74318ea36181758 100755 (executable)
@@ -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 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
 sudo rm -rf /var/www/
 sudo ln -fs /vagrant /var/www
@@ -83,7 +86,7 @@ sudo ln -fs /vagrant /var/www
 # install deps with composer
 sudo apt install unzip
 cd /var/www
-php bin/composer.phar install
+sudo -u www-data php bin/composer.phar install
 
 # initial config file for friendica in vagrant
 cp /vagrant/mods/local.config.vagrant.php /vagrant/config/local.config.php