Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 4d7af0c

Browse files
Apply suggestions
1 parent 36dc852 commit 4d7af0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

filebrowser/run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ fi
2323

2424
# Check if filebrowser db exists
2525
if [ ! -f ${DB_PATH} ]; then
26-
filebrowser $DB_FLAG config init >> ${LOG_PATH} 2>&1
27-
filebrowser $DB_FLAG users add admin "" --perm.admin=true --viewMode=mosaic >> ${LOG_PATH} 2>&1
26+
filebrowser $DB_FLAG config init 2>&1 | tee -a ${LOG_PATH}
27+
filebrowser $DB_FLAG users add admin "" --perm.admin=true --viewMode=mosaic 2>&1 | tee -a ${LOG_PATH}
2828
fi
2929

30-
filebrowser $DB_FLAG config set --baseurl=${SERVER_BASE_PATH} --port=${PORT} --auth.method=noauth --root=$ROOT_DIR >> ${LOG_PATH} 2>&1
30+
filebrowser $DB_FLAG config set --baseurl=${SERVER_BASE_PATH} --port=${PORT} --auth.method=noauth --root=$ROOT_DIR 2>&1 | tee -a ${LOG_PATH}
3131

3232
printf "👷 Starting filebrowser in background... \n\n"
3333

3434

3535
printf "📂 Serving $${ROOT_DIR} at http://localhost:${PORT} \n\n"
3636

37-
printf "Running 'filebrowser $DB_FLAG' \n\n"
37+
printf "Running 'filebrowser %s' \n\n" "$DB_FLAG"
3838

3939
filebrowser $DB_FLAG >> ${LOG_PATH} 2>&1 &
4040

0 commit comments

Comments
 (0)