- 
                Notifications
    You must be signed in to change notification settings 
- Fork 62
fix(filebrowser): configure before running #400
Changes from 4 commits
2c30497
              462a79f
              fb156fa
              36dc852
              4d7af0c
              9acc25c
              36450ff
              bf86489
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -11,7 +11,7 @@ fi | |
|  | ||
| printf "🥳 Installation complete! \n\n" | ||
|  | ||
| printf "👷 Starting filebrowser in background... \n\n" | ||
| printf "🛠️ Configuring filebrowser \n\n" | ||
|  | ||
| ROOT_DIR=${FOLDER} | ||
| ROOT_DIR=$${ROOT_DIR/\~/$HOME} | ||
|  | @@ -21,10 +21,21 @@ if [ "${DB_PATH}" != "filebrowser.db" ]; then | |
| DB_FLAG=" -d ${DB_PATH}" | ||
| fi | ||
|  | ||
| # Check if filebrowser db exists | ||
| if [ ! -f ${DB_PATH} ]; then | ||
| filebrowser $DB_FLAG config init >> ${LOG_PATH} 2>&1 | ||
| filebrowser $DB_FLAG users add admin "" --perm.admin=true --viewMode=mosaic >> ${LOG_PATH} 2>&1 | ||
| fi | ||
|  | ||
| filebrowser $DB_FLAG config set --baseurl=${SERVER_BASE_PATH} --port=${PORT} --auth.method=noauth --root=$ROOT_DIR >> ${LOG_PATH} 2>&1 | ||
|         
                  evilhamsterman marked this conversation as resolved.
              Outdated
          
            Show resolved
            Hide resolved | ||
|  | ||
| printf "👷 Starting filebrowser in background... \n\n" | ||
|  | ||
|  | ||
| printf "📂 Serving $${ROOT_DIR} at http://localhost:${PORT} \n\n" | ||
|  | ||
| printf "Running 'filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG} --baseurl ${SERVER_BASE_PATH}' \n\n" | ||
| printf "Running 'filebrowser $DB_FLAG' \n\n" | ||
|         
                  phorcys420 marked this conversation as resolved.
              Outdated
          
            Show resolved
            Hide resolved | ||
|  | ||
| filebrowser --noauth --root $ROOT_DIR --port ${PORT}$${DB_FLAG} --baseurl ${SERVER_BASE_PATH} > ${LOG_PATH} 2>&1 & | ||
| filebrowser $DB_FLAG >> ${LOG_PATH} 2>&1 & | ||
|          | ||
|  | ||
| printf "📝 Logs at ${LOG_PATH} \n\n" | ||
Uh oh!
There was an error while loading. Please reload this page.