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:
233boy
2026-03-21 21:08:07 +08:00
committed by GitHub

View File

@@ -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
} }