Skip to content

Commit

Permalink
install-docker.sh: fix failure when not run as root
Browse files Browse the repository at this point in the history
During Vagrant setup, the provisionning step was run as root so that was
fine but when setting up Notos, we are provisionning the new machine as
a regular user with sudo access so the fix was needed.

Error fixed:
```
+ echo 'export PATH="$PATH:/usr/local/bin"'
./birdhouse/vagrant-utils/install-docker.sh: line 93: /etc/profile.d/usr_local_path.sh: Permission denied
```
  • Loading branch information
tlvu committed Oct 25, 2021
1 parent 86b62bc commit ad62cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion birdhouse/vagrant-utils/install-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fi

# Add /usr/local/bin to PATH of all users, even root user, so docker-compose
# can be found.
echo 'export PATH="$PATH:/usr/local/bin"' > /etc/profile.d/usr_local_path.sh
echo 'export PATH="$PATH:/usr/local/bin"' | sudo tee /etc/profile.d/usr_local_path.sh

# install docker-compose, from https://gist.github.com/wdullaer/f1af16bd7e970389bad3
LATEST_COMPOSE_VERSION="`git ls-remote https://github.com/docker/compose | grep refs/tags | grep -v refs/tags/v | grep -oP "[0-9]+\.[0-9][0-9]+\.[0-9]+$"|tail -1`"
Expand Down

0 comments on commit ad62cb7

Please sign in to comment.