Skip to content

Commit 9cab8b8

Browse files
committed
clean fix
1 parent 88e2d63 commit 9cab8b8

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

filebrowser/run.sh

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

24-
if test -f "${DB_PATH}"; then
25-
printf "DB ${DB_PATH} is existing, skipping initializing\n\n"
26-
else
27-
printf "DB ${DB_PATH} not existing, initializing\n\n"
28-
filebrowser $${DB_FLAG} config init
29-
fi
30-
31-
printf "Setting baseurl to ${SERVER_BASE_PATH}\n\n"
32-
filebrowser config set --baseurl "${SERVER_BASE_PATH}" $${DB_FLAG} > ${LOG_PATH} 2>&1
33-
3424
printf "📂 Serving $${ROOT_DIR} at http://localhost:${PORT} \n\n"
3525

36-
printf "Running 'filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG}' \n\n"
37-
38-
filebrowser --noauth --root $ROOT_DIR --port ${PORT} $${DB_FLAG} >> ${LOG_PATH} 2>&1 &
26+
printf "Running 'filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG}' -b ${SERVER_BASE_PATH} \n\n"
27+
filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG} -b ${SERVER_BASE_PATH} > ${LOG_PATH} 2>&1 &
3928

4029

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

0 commit comments

Comments
 (0)