mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 10:50:16 +00:00
Remove debconf-apt-progress usage
debconf-apt-progress is a tool to show a whiptail based dialog with progress bar for apt package installs, but it is some downsides: - It aborts whenever apt or debconf halt for an interactive input, hence this would need to be prevented carefully, e.g. via "DEBIAN_FRONTEND=noninteractive" and "--force-confdef/old/new/miss", while it is questionable whether PiVPN should mute such configuration inputs for users. - It even aborts when such interactive input is not actually required in some cases, but triggered by some other debconf load internals: pivpn#1360 Most importantly, aside of the visually probably appealing progress bar, debconf-apt-progress has not any upsides but reduces transparency of what is actually done, and the installer has a fallback already. This commit removes the debconf-apt-progress usage in favour of the fallback: direct apt-get usage. Signed-off-by: MichaIng <micha@dietpi.com>
This commit is contained in:
parent
306ddc7369
commit
f9d86cba40
1 changed files with 2 additions and 7 deletions
|
@ -543,13 +543,8 @@ installDependentPackages(){
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
$SUDO ${PKG_INSTALL} "${TO_INSTALL[@]}"
|
$SUDO ${PKG_INSTALL} "${TO_INSTALL[@]}"
|
||||||
else
|
else
|
||||||
if command -v debconf-apt-progress > /dev/null; then
|
# shellcheck disable=SC2086
|
||||||
# shellcheck disable=SC2086
|
$SUDO ${PKG_INSTALL} "${TO_INSTALL[@]}"
|
||||||
$SUDO debconf-apt-progress --logfile "${APTLOGFILE}" -- ${PKG_INSTALL} "${TO_INSTALL[@]}"
|
|
||||||
else
|
|
||||||
# shellcheck disable=SC2086
|
|
||||||
$SUDO ${PKG_INSTALL} "${TO_INSTALL[@]}"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local FAILED=0
|
local FAILED=0
|
||||||
|
|
Loading…
Reference in a new issue