mirror of
https://github.com/233boy/sing-box.git
synced 2026-05-02 22:04:40 +08:00
Merge pull request #119 from rowanchen-com/main
fix: force full package install on Alpine and wait for service start
This commit is contained in:
@@ -353,7 +353,10 @@ main() {
|
|||||||
|
|
||||||
# install dependent pkg
|
# install dependent pkg
|
||||||
if [[ $cmd =~ apk ]]; then
|
if [[ $cmd =~ apk ]]; then
|
||||||
install_pkg $is_pkg
|
# Alpine: force install full versions to replace BusyBox applets
|
||||||
|
apk update &>/dev/null
|
||||||
|
apk add $is_pkg &>/dev/null
|
||||||
|
[[ $? == 0 ]] && >$is_pkg_ok
|
||||||
else
|
else
|
||||||
install_pkg $is_pkg &
|
install_pkg $is_pkg &
|
||||||
fi
|
fi
|
||||||
@@ -448,6 +451,8 @@ main() {
|
|||||||
load core.sh
|
load core.sh
|
||||||
# create a reality config
|
# create a reality config
|
||||||
add reality
|
add reality
|
||||||
|
# wait for background tasks (e.g., OpenRC service start)
|
||||||
|
wait
|
||||||
# remove tmp dir and exit.
|
# remove tmp dir and exit.
|
||||||
exit_and_del_tmpdir ok
|
exit_and_del_tmpdir ok
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user