Skip to content

Commit

Permalink
Change mount path
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Jun 10, 2024
1 parent 870c4ec commit e331c4c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions WEBDAV.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ davfs2
Debian 12 (bookworm).

- Create a directory to use as the mount point; `tools/bench.sh` uses
`/tmp/dandisets-fuse` by default, and this path will be used throughout the
following instructions.
`/mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse` by default, and
this path will be used throughout the following instructions.

- Add the following to `/etc/davfs2/davfs2.conf`:

```
[/tmp/dandisets-fuse]
[/mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse]
ask_auth 0
follow_redirect 1
```
Expand All @@ -24,16 +24,16 @@ davfs2
the following commands with `sudo` without entering a password:
```
mount -t davfs https://webdav.dandiarchive.org /tmp/dandisets-fuse
umount /tmp/dandisets-fuse
mount -t davfs https://webdav.dandiarchive.org /mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse
umount /mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse
```
This can be done by adding the following lines to `/etc/sudoers`, where
`username` is replaced by the name of the user account:
```
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/mount -t davfs https\://webdav.dandiarchive.org /tmp/dandisets-fuse
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/umount /tmp/dandisets-fuse
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/mount -t davfs https\://webdav.dandiarchive.org /mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/umount /mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse
```
- Ensure that the `dandidav` instance at webdav.dandiarchive.org is being run
Expand All @@ -49,22 +49,22 @@ webdavfs
it.
- Create a directory to use as the mount point; `tools/bench.sh` uses
`/tmp/dandisets-fuse` by default, and this path will be used throughout the
following instructions.
`/mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse` by default, and
this path will be used throughout the following instructions.
- Grant the user who will be running `dandisets-healthstatus` permission to run
the following commands with `sudo` without entering a password:
```
mount -t webdavfs -o allow_other https://webdav.dandiarchive.org /tmp/dandisets-fuse
umount /tmp/dandisets-fuse
mount -t webdavfs -o allow_other https://webdav.dandiarchive.org /mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse
umount /mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse
```
This can be done by adding the following lines to `/etc/sudoers`, where
`username` is replaced by the name of the user account:
```
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/mount -t webdavfs -o allow_other https\://webdav.dandiarchive.org /tmp/dandisets-fuse
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/umount /tmp/dandisets-fuse
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/mount -t webdavfs -o allow_other https\://webdav.dandiarchive.org /mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse
username ALL=(ALL:ALL) NOPASSWD: /usr/bin/umount /mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse
```
-->
2 changes: 1 addition & 1 deletion tools/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -ex

PYTHON="$HOME"/miniconda3/bin/python
DANDISETS_PATH="$HOME"/healthstatus-dandisets
MOUNT_PATH=/tmp/dandisets-fuse
MOUNT_PATH=/mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse

cd "$(dirname "$0")"/..

Expand Down
2 changes: 1 addition & 1 deletion tools/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -ex

PYTHON="$HOME"/miniconda3/bin/python
DANDISETS_PATH=/mnt/backup/dandi/dandisets-healthstatus/dandisets
MOUNT_PATH=/tmp/dandisets-fuse
MOUNT_PATH=/mnt/backup/dandi/dandisets-healthstatus/dandisets-fuse

cd "$(dirname "$0")"/..
#git reset --hard HEAD
Expand Down

0 comments on commit e331c4c

Please sign in to comment.