Use a different tmp directory
This commit is contained in:
parent
89d5d0a4c4
commit
bd29f31007
|
@ -217,9 +217,12 @@ function install_tahoelafs {
|
||||||
cd /home/tahoelafs/tahoelafs
|
cd /home/tahoelafs/tahoelafs
|
||||||
git checkout $TAHOELAFS_COMMIT -b $TAHOELAFS_COMMIT
|
git checkout $TAHOELAFS_COMMIT -b $TAHOELAFS_COMMIT
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
export TMPDIR=/home/tahoelafs/tmp
|
||||||
|
if [ ! $TMPDIR ]; then
|
||||||
|
mkdir $TMPDIR
|
||||||
|
fi
|
||||||
virtualenv venv --distribute
|
virtualenv venv --distribute
|
||||||
venv/bin/pip uninstall --yes setuptools
|
venv/bin/pip uninstall --yes setuptools
|
||||||
rm -rf /tmp/*
|
|
||||||
venv/bin/pip install setuptools==11.3
|
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 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
|
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
|
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
|
TAHOELAFS_CONFIG=/home/tahoelafs/data/tahoe.cfg
|
||||||
if [ ! -f $TAHOELAFS_CONFIG ]; then
|
if [ ! -f $TAHOELAFS_CONFIG ]; then
|
||||||
|
export TMPDIR=/tmp
|
||||||
exit 62831
|
exit 62831
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -276,7 +280,8 @@ function install_tahoelafs {
|
||||||
systemctl start tahoelafs
|
systemctl start tahoelafs
|
||||||
|
|
||||||
set_completion_param "tahoelafs commit" "$TAHOELAFS_COMMIT"
|
set_completion_param "tahoelafs commit" "$TAHOELAFS_COMMIT"
|
||||||
rm -rf /tmp/*
|
export TMPDIR=/tmp
|
||||||
|
rm -rf /home/tahoelafs/tmp
|
||||||
|
|
||||||
APP_INSTALLED=1
|
APP_INSTALLED=1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue