Author: Kevin Schoon [me@kevinschoon.com]
Hash: 50561447c9924dc85dfcabaac5d71ccce78112ff
Timestamp: Sat, 08 Jun 2024 15:39:42 +0000 (1 month ago)

+4 -0 +/-1 browse
create rudolfs data directory if it is missing
1diff --git a/containers/multiuser/service/rudolfs/run b/containers/multiuser/service/rudolfs/run
2index 3871098..2f2ec6b 100755
3--- a/containers/multiuser/service/rudolfs/run
4+++ b/containers/multiuser/service/rudolfs/run
5 @@ -3,5 +3,9 @@
6 RUDOLFS_DATA_PATH="${RUDOLFS_DATA_PATH:-/home/rudolfs/data}"
7 RUDOLFS_PORT="${RUDOLFS_PORT:-7000}"
8
9+ [ ! -d "$RUDOLFS_DATA_PATH" ] && {
10+ mkdir -p "$RUDOLFS_DATA_PATH"
11+ }
12+
13 exec su rudolfs -c \
14 "rudolfs --port=${RUDOLFS_PORT} local --path ${RUDOLFS_DATA_PATH}"