diff options
| author | 子寒 <42313988+linkerlau@users.noreply.github.com> | 2026-03-04 14:32:01 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-04 14:32:01 +0300 |
| commit | 842fae18d7acd5d42300052a54d3bbf950cea8b9 (patch) | |
| tree | 67181c654e859129e9e11ef4255396e1a84e4877 | |
| parent | ccd223aeea82e246e4575bf49fa6419e65be3901 (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.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
