Skip to content

Commit 2b97091

Browse files
authored
Merge pull request #119 from rowanchen-com/main
fix: force full package install on Alpine and wait for service start
2 parents 7effde1 + 2199ef6 commit 2b97091

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,10 @@ main() {
353353

354354
# install dependent pkg
355355
if [[ $cmd =~ apk ]]; then
356-
install_pkg $is_pkg
356+
# Alpine: force install full versions to replace BusyBox applets
357+
apk update &>/dev/null
358+
apk add $is_pkg &>/dev/null
359+
[[ $? == 0 ]] && >$is_pkg_ok
357360
else
358361
install_pkg $is_pkg &
359362
fi
@@ -448,6 +451,8 @@ main() {
448451
load core.sh
449452
# create a reality config
450453
add reality
454+
# wait for background tasks (e.g., OpenRC service start)
455+
wait
451456
# remove tmp dir and exit.
452457
exit_and_del_tmpdir ok
453458
}

0 commit comments

Comments
 (0)