Skip to content

Commit 1c808b9

Browse files
authored
Update filebrowser.sh
1 parent 0c02451 commit 1c808b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

misc/filebrowser.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ if [[ "${install_prompt,,}" =~ ^(y|yes)$ ]]; then
8686
if [[ "${auth_prompt,,}" =~ ^(y|yes)$ ]]; then
8787
msg_info "Configuring No Authentication"
8888
filebrowser config init -a '0.0.0.0' --database /var/lib/filebrowser/filebrowser.db &>/dev/null
89-
filebrowser config set -a '0.0.0.0' --auth.method=noauth &>/dev/null
89+
filebrowser config set -a '0.0.0.0' --auth.method=noauth --database /var/lib/filebrowser/filebrowser.db &>/dev/null
9090
msg_ok "No Authentication configured"
9191
else
9292
msg_info "Setting up default authentication"
9393
filebrowser config init -a '0.0.0.0' --database /var/lib/filebrowser/filebrowser.db &>/dev/null
94-
filebrowser config set -a '0.0.0.0' &>/dev/null
95-
filebrowser users add admin helper-scripts.com --perm.admin &>/dev/null
94+
filebrowser config set -a '0.0.0.0' --database /var/lib/filebrowser/filebrowser.db &>/dev/null
95+
filebrowser users add admin helper-scripts.com --perm.admin --database /var/lib/filebrowser/filebrowser.db &>/dev/null
9696
msg_ok "Default authentication configured (admin:helper-scripts.com)"
9797
fi
9898

0 commit comments

Comments
 (0)