tahoe-lafs/.circleci/bootstrap-test-environment.sh

15 lines
384 B
Bash
Raw Normal View History

#!/bin/bash -e
2018-06-15 19:14:55 +00:00
PROJECT=$1
shift
# Avoid the /nonexistent home directory in nobody's /etc/passwd entry.
usermod --home /tmp/nobody nobody
# Grant read access to nobody, the user which will eventually try to test this
# checkout.
2018-06-15 19:14:55 +00:00
mv "${PROJECT}" /tmp/project
# Python build/install toolchain wants to write to the source checkout, too.
chown --recursive nobody:nogroup /tmp/project