mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-04-25 07:15:57 +03:00
[PR #13] [MERGED] Fix Bun permissions issue in LXC container installer #100
Labels
No labels
bug
documentation
enhancement
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/gitea-mirror#100
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/13
Author: @arunavo4
Created: 5/21/2025
Status: ✅ Merged
Merged: 5/22/2025
Merged by: @arunavo4
Base:
main← Head:fix-bun-permissions-in-lxc📝 Commits (10+)
c896194Fix Bun permissions issue in LXC container installer0cf95b2Improve error handling and permission checks in LXC installer161685bAdd directory permission check before creating symlink in systemd service setup32ef912Remove sqlite3 dependency from package.jsona15178dImplement health check API and update health check commands in Docker and Docker Compose5bf52c8Update README and add LXC deployment guide; enhance LXC installer scripts1eae725Update LXC deployment guide references and remove outdated documentation1ab642cUpdate LXC deployment scripts: replace installer script with Proxmox-specific script and update README references8b5c5d8Update README to include event management scripts and LXC deployment details9ccd656Update documentation: revise architecture, configuration, and quick start guides to reflect new features and deployment options📊 Changes
15 files changed (+804 additions, -361 deletions)
View changed files
📝
Dockerfile(+1 -1)📝
README.md(+33 -13)📝
bun.lock(+72 -19)📝
docker-compose.homelab.yml(+1 -1)📝
package.json(+0 -1)📝
scripts/README-lxc.md(+93 -114)📝
scripts/README.md(+72 -9)➖
scripts/gitea-mirror-lxc-installer.sh(+0 -188)➕
scripts/gitea-mirror-lxc-local.sh(+86 -0)➕
scripts/gitea-mirror-lxc-proxmox.sh(+97 -0)📝
src/content/docs/architecture.md(+28 -7)📝
src/content/docs/configuration.md(+58 -3)📝
src/content/docs/quickstart.md(+60 -5)📝
src/lib/api.ts(+77 -0)➕
src/pages/api/health.ts(+126 -0)📄 Description
Problem
Closes #12
The LXC container installer script installs Bun to
/root/.bun/bin/bun, but the systemd service runs as thegitea-mirroruser. This causes a "Permission denied" error when the service tries to execute Bun, as thegitea-mirroruser doesn't have access to files in the/rootdirectory.Error from logs:
Solution
This PR fixes the issue by:
/usr/local/binto make it accessible to all users/usr/local/binis writable before creating symlinksTesting
To test this fix:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.