Use a different tmp directory

This commit is contained in:
Bob Mottram 2017-03-04 21:53:14 +00:00
parent 89d5d0a4c4
commit bd29f31007
1 changed files with 7 additions and 2 deletions

View File

@ -217,9 +217,12 @@ function install_tahoelafs {
cd /home/tahoelafs/tahoelafs
git checkout $TAHOELAFS_COMMIT -b $TAHOELAFS_COMMIT
git submodule update --init --recursive
export TMPDIR=/home/tahoelafs/tmp
if [ ! $TMPDIR ]; then
mkdir $TMPDIR
fi
virtualenv venv --distribute
venv/bin/pip uninstall --yes setuptools
rm -rf /tmp/*
venv/bin/pip install setuptools==11.3
venv/bin/pip install six==1.10.0 packaging==16.8 attrs==16.3.0 appdirs==1.4.2 pycrypto==2.1.0 cffi==1.9.1
venv/bin/pip install cryptography==1.7.2 markerlib==0.6.0 distribute==0.7.3
@ -245,6 +248,7 @@ function install_tahoelafs {
su -c "$TAHOE_COMMAND create-introducer -C /home/tahoelafs/data --hide-ip --hostname=127.0.0.1" - tahoelafs
TAHOELAFS_CONFIG=/home/tahoelafs/data/tahoe.cfg
if [ ! -f $TAHOELAFS_CONFIG ]; then
export TMPDIR=/tmp
exit 62831
fi
@ -276,7 +280,8 @@ function install_tahoelafs {
systemctl start tahoelafs
set_completion_param "tahoelafs commit" "$TAHOELAFS_COMMIT"
rm -rf /tmp/*
export TMPDIR=/tmp
rm -rf /home/tahoelafs/tmp
APP_INSTALLED=1
}