Non-interactive installation on debian (respect -y flag!)
This commit is contained in:
+3
-2
@@ -36,8 +36,9 @@ if [ "$ARCH" = "i686" ]; then ARCH="i386"; fi
|
|||||||
test -e /etc/debian_version && DIST="Debian"
|
test -e /etc/debian_version && DIST="Debian"
|
||||||
grep Ubuntu /etc/lsb-release &> /dev/null && DIST="Ubuntu"
|
grep Ubuntu /etc/lsb-release &> /dev/null && DIST="Ubuntu"
|
||||||
if [ "$DIST" = "Ubuntu" ] || [ "$DIST" = "Debian" ]; then
|
if [ "$DIST" = "Ubuntu" ] || [ "$DIST" = "Debian" ]; then
|
||||||
install='sudo apt-get -y install'
|
# Truly non-interactive apt-get installation
|
||||||
remove='sudo apt-get -y remove'
|
install='sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q install'
|
||||||
|
remove='sudo DEBIAN_FRONTEND=noninteractive apt-get -y -q remove'
|
||||||
pkginst='sudo dpkg -i'
|
pkginst='sudo dpkg -i'
|
||||||
# Prereqs for this script
|
# Prereqs for this script
|
||||||
if ! which lsb_release &> /dev/null; then
|
if ! which lsb_release &> /dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user