From a9de6f59dcc159e4588335f8ef3cb085674faaa5 Mon Sep 17 00:00:00 2001 From: Tim Van Steenburgh Date: Mon, 28 Nov 2016 13:25:32 -0500 Subject: [PATCH] Try newgrp alternative newgrp only works in interactive mode. Try another means of running commands in the lxd group. --- .travis.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 66083d9..7627691 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,12 +9,10 @@ before_install: - sudo apt-get update -q - sudo apt-get install lxd juju -y - sudo usermod -a -G lxd $USER - - newgrp lxd - - groups - - sudo lxd init --auto + - sudo -E sudo -u $USER -E bash -c "lxd init --auto" install: pip install tox-travis before_script: - - juju bootstrap localhost test + - sudo -E sudo -u $USER -E bash -c "juju bootstrap localhost test" script: tox after_script: - - juju destroy-controller --destroy-all-models -y test + - sudo -E sudo -u $USER -E bash -c "juju destroy-controller --destroy-all-models -y test" -- 2.25.1