Browse Source

added git as dependency for the Vagrant VM and made the call to compuser with www-data

pull/7703/head
Tobias Diekershoff 2 weeks ago
parent
commit
2a383688a6
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      bin/dev/vagrant_provision.sh

+ 4
- 1
bin/dev/vagrant_provision.sh View File

@@ -76,6 +76,9 @@ debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Local Only'
76 76
 sudo apt-get install -y postfix mailutils libmailutils-dev
77 77
 sudo echo -e "friendica1:	vagrant\nfriendica2:	vagrant\nfriendica3:	vagrant\nfriendica4:	vagrant\nfriendica5:	vagrant" >> /etc/aliases && sudo newaliases
78 78
 
79
+# Friendica needs git for fetching some dependencies
80
+sudo apt-get install -y git
81
+
79 82
 #make the vagrant directory the docroot
80 83
 sudo rm -rf /var/www/
81 84
 sudo ln -fs /vagrant /var/www
@@ -83,7 +86,7 @@ sudo ln -fs /vagrant /var/www
83 86
 # install deps with composer
84 87
 sudo apt install unzip
85 88
 cd /var/www
86
-php bin/composer.phar install
89
+sudo -u www-data php bin/composer.phar install
87 90
 
88 91
 # initial config file for friendica in vagrant
89 92
 cp /vagrant/mods/local.config.vagrant.php /vagrant/config/local.config.php

Loading…
Cancel
Save