Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author子寒 <42313988+linkerlau@users.noreply.github.com>2026-03-04 14:32:01 +0300
committerGitHub <noreply@github.com>2026-03-04 14:32:01 +0300
commit842fae18d7acd5d42300052a54d3bbf950cea8b9 (patch)
tree67181c654e859129e9e11ef4255396e1a84e4877
parentccd223aeea82e246e4575bf49fa6419e65be3901 (diff)
Add 'default' runlevel to x-ui service in Alpine (#3854)
it should be 'default' runlevel when add x-ui service to openrc, default is 'sysinit' runlevel. 'sysinit' runlevel is unnecessary,maybe. if not, there is an error when call to function 'check_enabled()' as command 'grep default -c' can`t print 'default' runlevel. check_enabled() { if [[ $release == "alpine" ]]; then if [[ $(rc-update show | grep -F 'x-ui' | grep default -c) == 1 ]]; then return 0 else return 1 fi
-rw-r--r--x-ui.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/x-ui.sh b/x-ui.sh
index 933a964e..0a2b818b 100644
--- a/x-ui.sh
+++ b/x-ui.sh
@@ -431,7 +431,7 @@ status() {
enable() {
if [[ $release == "alpine" ]]; then
- rc-update add x-ui
+ rc-update add x-ui default
else
systemctl enable x-ui
fi