forked from expo/troggle
More fixes for laptop
This commit is contained in:
parent
8e982bd6be
commit
175307773b
@ -8,7 +8,7 @@ The simple redirections to files which exist, e.g. in
|
|||||||
/expoweb/
|
/expoweb/
|
||||||
/expofiles/
|
/expofiles/
|
||||||
/expofiles/documents/
|
/expofiles/documents/
|
||||||
etc. will test fine.
|
etc. using parameters in localsettings such as PHOTOS_ROOT will test fine.
|
||||||
|
|
||||||
But paths like this:
|
But paths like this:
|
||||||
/survey_scans/
|
/survey_scans/
|
||||||
|
@ -103,7 +103,7 @@ class PostTests(TestCase):
|
|||||||
self.expedition = e
|
self.expedition = e
|
||||||
|
|
||||||
def test_file_permissions(self):
|
def test_file_permissions(self):
|
||||||
"""Expect to be allowed to write to expofiles
|
"""Expect to be allowed to write to SCANS_ROOT, DRAWINGS_DATA, SURVEX_DATA, EXPOWEB
|
||||||
Need to login first.
|
Need to login first.
|
||||||
"""
|
"""
|
||||||
c = self.client
|
c = self.client
|
||||||
|
@ -6,8 +6,7 @@ so any path that relies on data being in the database will fail.
|
|||||||
|
|
||||||
The simple redirections to files which exist, e.g. in
|
The simple redirections to files which exist, e.g. in
|
||||||
/expoweb/
|
/expoweb/
|
||||||
/expofiles/
|
/photos/
|
||||||
/expofiles/documents/
|
|
||||||
etc. will test fine.
|
etc. will test fine.
|
||||||
|
|
||||||
But paths like this:
|
But paths like this:
|
||||||
|
@ -6,8 +6,7 @@ so any path that relies on data being in the database will fail.
|
|||||||
|
|
||||||
The simple redirections to files which exist, e.g. in
|
The simple redirections to files which exist, e.g. in
|
||||||
/expoweb/
|
/expoweb/
|
||||||
/expofiles/
|
/photos/
|
||||||
/expofiles/documents/
|
|
||||||
etc. will test fine.
|
etc. will test fine.
|
||||||
|
|
||||||
But paths like this:
|
But paths like this:
|
||||||
|
13
venv-trog.sh
13
venv-trog.sh
@ -72,17 +72,18 @@ ln -s ${TROGDIR} troggle
|
|||||||
ln -s ${TROGDIR}/../expoweb expoweb
|
ln -s ${TROGDIR}/../expoweb expoweb
|
||||||
ln -s ${TROGDIR}/../loser loser
|
ln -s ${TROGDIR}/../loser loser
|
||||||
ln -s ${TROGDIR}/../drawings drawings
|
ln -s ${TROGDIR}/../drawings drawings
|
||||||
|
#ln -s ${TROGDIR}/../expofiles expofiles
|
||||||
|
|
||||||
# fudge for philip's machine
|
# fudge for philip's machine
|
||||||
|
if [ ! -d /mnt/d/EXPO ]; then
|
||||||
|
sudo mkdir /mnt/d
|
||||||
|
sudo mount -t drvfs D: /mnt/d
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d ${TROGDIR}/../expofiles ]; then
|
if [ -d ${TROGDIR}/../expofiles ]; then
|
||||||
ln -s ${TROGDIR}/../expofiles expofiles
|
ln -s ${TROGDIR}/../expofiles expofiles
|
||||||
else
|
else
|
||||||
if [ ! -d /mnt/d/expofiles ]; then
|
ln -s /mnt/d/EXPO/expofiles expofiles
|
||||||
sudo mkdir /mnt/d
|
|
||||||
sudo mount -t drvfs D: /mnt/d
|
|
||||||
else
|
|
||||||
ln -s /mnt/d/expofiles expofiles
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "### Setting file permissions.. may take a while.."
|
echo "### Setting file permissions.. may take a while.."
|
||||||
|
Loading…
Reference in New Issue
Block a user