[PR #3602] [MERGED] feat: Add etckeeper compatibility (ignore x-ui.db in /etc) #5476

Closed
opened 2026-10-31 20:47:14 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3602
Author: @Colten61
Created: 12/9/2025
Status: ✅ Merged
Merged: 1/3/2026
Merged by: @MHSanaei

Base: main ← Head: patch-1


📝 Commits (1)

  • 837dea0 feat: Add etckeeper compatibility

📊 Changes

1 file changed (+14 additions, -0 deletions)

View changed files

📝 install.sh (+14 -0)

📄 Description

What is the pull request?

Prevents etckeeper from tracking the database (x-ui.db), which changes often and keeps the /etc repo in a constant "dirty" state.

Logic added to install.sh: Checks if /etc/.git exists. If so, appends x-ui/x-ui.db to /etc/.gitignore (avoiding duplicates) before the service starts.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 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/MHSanaei/3x-ui/pull/3602 **Author:** [@Colten61](https://github.com/Colten61) **Created:** 12/9/2025 **Status:** ✅ Merged **Merged:** 1/3/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`837dea0`](https://github.com/MHSanaei/3x-ui/commit/837dea04e82badbde780f79d7835d438b5460d8c) feat: Add etckeeper compatibility ### 📊 Changes **1 file changed** (+14 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `install.sh` (+14 -0) </details> ### 📄 Description ## What is the pull request? Prevents etckeeper from tracking the database (x-ui.db), which changes often and keeps the /etc repo in a constant "dirty" state. Logic added to install.sh: Checks if /etc/.git exists. If so, appends x-ui/x-ui.db to /etc/.gitignore (avoiding duplicates) before the service starts. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [ ] Bug fix - [x] New feature - [ ] Refactoring - [x] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:14 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5476
No description provided.