Update vagrant devbox provisioning

- run provisioning script as root
- don't load friendica_test_data.sql which is outdated
- install friendica and create users via console commands
- install cronjob in `/etc/cron.d/friendica` and run as `www-data` user
- force to have "vagrant-vbguest" insstalled. We need updated vbguest
  addins to correctly mount local folder
- add "config.hostname" and "system.ssl_policy" values in
  `local.config.vagrant.php`
This commit is contained in:
fabrixxm 2021-05-24 17:06:52 +02:00
parent 6ef9ccbb97
commit dd1835d15d
3 changed files with 75 additions and 40 deletions

6
Vagrantfile vendored
View file

@ -34,10 +34,14 @@ Vagrant.configure(2) do |config|
#
# # Customize the amount of memory on the VM:
vb.memory = server_memory
unless Vagrant.has_plugin?("vagrant-vbguest")
raise 'vagrant-vbguest plugin is not installed! Install with "vagrant plugin install vagrant-vbguest"'
end
end
# Enable provisioning with a shell script.
config.vm.provision "shell", path: "./bin/dev/vagrant_provision.sh"
config.vm.provision "shell", path: "./bin/dev/vagrant_provision.sh", privileged: true
# run: "always"
# run: "once"
end