mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-04-26 08:25:59 +03:00
[PR #15] [MERGED] Use system utils for commands and services #18
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ServerKit#18
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/jhd3197/ServerKit/pull/15
Author: @jhd3197
Created: 2/10/2026
Status: ✅ Merged
Merged: 2/10/2026
Merged by: @jhd3197
Base:
main← Head:dev📝 Commits (2)
06de896Use system utils for commands and services401fd71chore: bump version to 1.2.81 [skip ci]📊 Changes
11 files changed (+773 additions, -522 deletions)
View changed files
📝
VERSION(+1 -1)📝
backend/app/services/deployment_service.py(+3 -6)📝
backend/app/services/firewall_service.py(+53 -152)📝
backend/app/services/ftp_service.py(+12 -35)📝
backend/app/services/nginx_service.py(+23 -84)📝
backend/app/services/php_service.py(+23 -66)📝
backend/app/services/python_service.py(+11 -25)📝
backend/app/services/security_service.py(+56 -101)📝
backend/app/services/ssl_service.py(+30 -52)➕
backend/app/utils/system.py(+194 -0)➕
backend/tests/test_utils_system.py(+367 -0)📄 Description
Refactor services to use centralized system helpers (ServiceControl, PackageManager, run_privileged, is_command_available) instead of ad-hoc subprocess/os calls. Updated deployment, firewall, ftp, nginx, php, python, security, and ssl services to call the new utilities and added error/timeout handling improvements and package manager abstraction. Added backend/app/utils/system.py implementing the helpers and backend/tests/test_utils_system.py with unit tests. This centralizes privileged command execution and service/package management, simplifying tests and platform differences.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.