Skip to content

Commit 01efa59

Browse files
committed
allocate a pseudotty for dvuploader
python-dvuploader uses typer, which gives fancy progress bars, etc.; without a pseudotty, the output doesn't auto update or get the nice color formatting.
1 parent 1223c92 commit 01efa59

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Dataverse -> /srv/dataverse-prod
1313

1414
## Permissions
1515

16-
You don't necessarily want to give docker rights to users of this script, since docker implies root permissions. You can extend a limited ability to run the script with the following workaround:
16+
You don't necessarily want to give docker rights to users of this script, since docker implies root permissions. You can extend a limited ability to run the script with the following workaround (see `[scripts](scripts)`):
1717

1818
```sh
1919
# In system-wide profile
@@ -22,6 +22,7 @@ alias dvuploader="sudo /usr/local/sbin/dvuploader.sh"
2222
# In /usr/local/sbin/dvuploader.sh
2323
#!/bin/sh -e
2424
exec docker run \
25+
-t \
2526
--init \
2627
--rm \
2728
--volume /srv/da:/srv/da:ro \

scripts/dvuploader.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh -e
22
exec docker run \
3+
-t \
34
--init \
45
--rm \
56
--volume /srv/da:/srv/da:ro \

0 commit comments

Comments
 (0)