aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-12-16 14:21:42 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-12-16 14:21:42 +0100
commit3c4b7f712d61a9006f90960273fdefcb0c7ca371 (patch)
treeba053bdf09fc43123942af68e1c4b5cb5409b780 /vagrant
parent486234e88955306e67dbdfca4027392328f81c56 (diff)
parent515b798b48c799df74f4132a7837faeaba141a8a (diff)
downloadhmnoweb-3c4b7f712d61a9006f90960273fdefcb0c7ca371.tar.gz
hmnoweb-3c4b7f712d61a9006f90960273fdefcb0c7ca371.tar.bz2
hmnoweb-3c4b7f712d61a9006f90960273fdefcb0c7ca371.zip
Merge branch 'reboot-vagrant'
Diffstat (limited to 'vagrant')
-rw-r--r--vagrant/bootstrap.sh18
1 files changed, 7 insertions, 11 deletions
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
index 7395aa7..2ff62a6 100644
--- a/vagrant/bootstrap.sh
+++ b/vagrant/bootstrap.sh
@@ -1,12 +1,8 @@
-#!/usr/bin/env bash
+#!/bin/sh
+pkg upgrade -y -q -f
+pkg install -y -q ruby rubygem-bundler postgresql93-server postgresql93-client git sqlite3
-pacman -Suyq --noconfirm
-pacman -Sq ruby gcc make sqlite3 nodejs imagemagick --noconfirm
-echo "export GEM_HOME=`gem env gemdir`" > /etc/profile.d/rubygems.sh
-source /etc/profile.d/rubygems.sh
-gem install bundler --no-rdoc --no-ri --no-user-install
-cd /vagrant
-./script/setup
-cp vagrant/rails.service /usr/lib/systemd/system
-systemctl enable rails
-systemctl start rails
+echo 'postgresql_enable="YES"' >> /etc/rc.conf
+
+service postgresql initdb
+service -R