mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Wtf is wrong with you sudo :| Why don't you forward the damn DEBIAN_FRONTEND
This commit is contained in:
parent
a742ca8939
commit
d0c7603d9d
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ ynh_package_version() {
|
||||||
# usage: ynh_apt update
|
# usage: ynh_apt update
|
||||||
ynh_apt() {
|
ynh_apt() {
|
||||||
ynh_wait_dpkg_free
|
ynh_wait_dpkg_free
|
||||||
DEBIAN_FRONTEND=noninteractive sudo apt-get -y $@
|
DEBIAN_FRONTEND=noninteractive apt-get -y $@
|
||||||
}
|
}
|
||||||
|
|
||||||
# Update package index files
|
# Update package index files
|
||||||
|
@ -150,7 +150,7 @@ ynh_package_install_from_equivs () {
|
||||||
cp "$controlfile" "${TMPDIR}/control"
|
cp "$controlfile" "${TMPDIR}/control"
|
||||||
(cd "$TMPDIR"
|
(cd "$TMPDIR"
|
||||||
equivs-build ./control 1> /dev/null
|
equivs-build ./control 1> /dev/null
|
||||||
DEBIAN_FRONTEND=noninteractive dpkg --force-depends -i "./${pkgname}_${pkgversion}_all.deb" 2>&1)
|
dpkg --force-depends -i "./${pkgname}_${pkgversion}_all.deb" 2>&1)
|
||||||
ynh_package_install -f || ynh_die --message="Unable to install dependencies"
|
ynh_package_install -f || ynh_die --message="Unable to install dependencies"
|
||||||
[[ -n "$TMPDIR" ]] && rm -rf $TMPDIR # Remove the temp dir.
|
[[ -n "$TMPDIR" ]] && rm -rf $TMPDIR # Remove the temp dir.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue