[PR #2207] [MERGED] [Fix] Filebrowser - Add Static Path for DB #3494

Closed
opened 2025-11-20 06:05:08 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/2207
Author: @MickLesk
Created: 2/10/2025
Status: Merged
Merged: 2/10/2025
Merged by: @MickLesk

Base: mainHead: fix_filebrowser


📝 Commits (1)

  • 4ae71b0 [Fix] Filebrowser - Add Static Path for DB

📊 Changes

1 file changed (+12 additions, -5 deletions)

View changed files

📝 misc/filebrowser.sh (+12 -5)

📄 Description

✍️ Description

adds an static path for db. Maybe need migration for older users.

Migration:

    mkdir -p /var/lib/filebrowser
    chown root:root /var/lib/filebrowser
    chmod 755 /var/lib/filebrowser

After this, change Service:

cat <<EOF >/etc/systemd/system/filebrowser.service
[Unit]
Description=Filebrowser
After=network-online.target

[Service]
User=root
WorkingDirectory=/var/lib/filebrowser/
ExecStart=/usr/local/bin/filebrowser -r / --database /var/lib/filebrowser/filebrowser.db
Restart=always

[Install]
WantedBy=multi-user.target
EOF

and restart service:

systemctl restart filebrowser


Prerequisites

The following steps must be completed for the pull request to be considered:

  • Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.)
  • Testing performed (I have thoroughly tested my changes and verified expected functionality.)

🛠️ Type of Change

Please check the relevant options:

  • Bug fix (non-breaking change that resolves an issue)
  • Breaking change (fix or feature that would cause existing functionality to change unexpectedly)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/2207 **Author:** [@MickLesk](https://github.com/MickLesk) **Created:** 2/10/2025 **Status:** ✅ Merged **Merged:** 2/10/2025 **Merged by:** [@MickLesk](https://github.com/MickLesk) **Base:** `main` ← **Head:** `fix_filebrowser` --- ### 📝 Commits (1) - [`4ae71b0`](https://github.com/community-scripts/ProxmoxVE/commit/4ae71b04f999d7ca3a06fb17edc3ede309870398) [Fix] Filebrowser - Add Static Path for DB ### 📊 Changes **1 file changed** (+12 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `misc/filebrowser.sh` (+12 -5) </details> ### 📄 Description ## ✍️ Description adds an static path for db. Maybe need migration for older users. Migration: ```bash mkdir -p /var/lib/filebrowser chown root:root /var/lib/filebrowser chmod 755 /var/lib/filebrowser ``` After this, change Service: ```bash cat <<EOF >/etc/systemd/system/filebrowser.service [Unit] Description=Filebrowser After=network-online.target [Service] User=root WorkingDirectory=/var/lib/filebrowser/ ExecStart=/usr/local/bin/filebrowser -r / --database /var/lib/filebrowser/filebrowser.db Restart=always [Install] WantedBy=multi-user.target EOF ``` and restart service: ```bash systemctl restart filebrowser ``` - - - - Related Issue: #2105 - - - ## ✅ Prerequisites The following steps must be completed for the pull request to be considered: - [x] Self-review performed (I have reviewed my code to ensure it follows established patterns and conventions.) - [x] Testing performed (I have thoroughly tested my changes and verified expected functionality.) ## 🛠️ Type of Change Please check the relevant options: - [x] Bug fix (non-breaking change that resolves an issue) - [x] Breaking change (fix or feature that would cause existing functionality to change unexpectedly) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 06:05:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#3494