Offer one-time Debian install for missing run.sh host dependencies #36
Loading…
Reference in a new issue
No description provided.
Delete branch "run-sh-prompt-install-missing-deps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What changed
run.sh: whengit,yq,rsync,envsubst, ordockeris missing, the script now says so once and asks whether to install the matching Debian package (git,yq-go,rsync,gettext-base,docker-cli). The run continues after a successful install.run.sh: ayqbinary that is present but is not mikefarah v4 gets the same one-time offer foryq-go.run.sh: the host-logrotatejq/logrotateoffer and the new dependency checks share one helper set (apt_install_preflight,read_apt_install_confirmation,install_host_apt_package), so confirmation acceptsy,yes,j, orja.run.sh:update_self_from_repouses the samerequire_host_command gitpath instead of its owngitcheck..openso/rules/20-scripts.md: documents the new behaviour.get-folder.shstill does not install packages and still errors on a missing command.Why
Previously
run.shonly reported missing or incompatible host tools and stopped, so operators had to install them by hand and re-run. The new flow offers the install once, in the same way host-logrotate already did, while keeping the existing rules: no install during--dry-run, none without a terminal, and the error stays if the operator declines.Review notes
apt-get updatethenapt-get install -y <package>, as root or via the configured sudo binary.