From 87184cc0fc72756a111b83d44a87c27594921467 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 11 Jan 2018 19:38:03 +0100 Subject: Vagrantfile: Need to start postgres before creating db user. --- Vagrantfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 25e3888..144dc82 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -67,13 +67,13 @@ Vagrant.configure("2") do |config| pacman -Suyq --noconfirm rustup postgresql gcc make su - postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'" + systemctl enable postgresql + systemctl start postgresql + su - postgres -c "createuser -d vagrant" - su - vagrant -c "rustup install nightly" - su - vagrant -c "rustup default nightly" - su - vagrant -c "cargo install diesel_cli --no-default-features --features postgres" + su - vagrant -c "rustup default nightly-2017-12-21" + su - vagrant -c "cargo install -q diesel_cli --no-default-features --features postgres" su - vagrant -c 'echo "PATH=$HOME/.cargo/bin:$PATH" >> ~/.bash_profile' - systemctl enable postgresql - systemctl start postgresql SHELL end -- cgit v1.2.3