Skip to content

Commit 3c3daee

Browse files
feat(filebrowser): add back default admin user creation in run script for initial setup
1 parent dff25e6 commit 3c3daee

File tree

1 file changed

+1
-0
lines changed
  • registry/coder/modules/filebrowser

1 file changed

+1
-0
lines changed

registry/coder/modules/filebrowser/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export FB_DATABASE="${DB_PATH}"
2525
# Check if filebrowser db exists
2626
if [[ ! -f "${DB_PATH}" ]]; then
2727
filebrowser config init 2>&1 | tee -a ${LOG_PATH}
28+
filebrowser users add admin "" --perm.admin=true --viewMode=mosaic 2>&1 | tee -a ${LOG_PATH}
2829
fi
2930

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

0 commit comments

Comments
 (0)