Skip to content

Commit 2e68392

Browse files
committed
bugfix: cannot change config as db is not yet initialized
1 parent c8a42f6 commit 2e68392

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

filebrowser/run.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@ if [ "${DB_PATH}" != "filebrowser.db" ]; then
2121
DB_FLAG=" -d ${DB_PATH}"
2222
fi
2323

24-
# set baseurl to be able to run if sudomain=false; if subdomain=true the SERVER_BASE_PATH value will be ""
25-
filebrowser config set --baseurl "${SERVER_BASE_PATH}"$${DB_FLAG} > ${LOG_PATH} 2>&1
26-
2724
printf "📂 Serving $${ROOT_DIR} at http://localhost:${PORT} \n\n"
2825

2926
printf "Running 'filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG}' \n\n"
3027

31-
filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG} > ${LOG_PATH} 2>&1 &
28+
filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG} -b ${SERVER_BASE_PATH} > ${LOG_PATH} 2>&1 &
3229

3330
printf "📝 Logs at ${LOG_PATH} \n\n"

0 commit comments

Comments
 (0)