Skip to content
Snippets Groups Projects
Commit 65000d32 authored by Bob Lantz's avatar Bob Lantz
Browse files

Non-interactive installation on debian (respect -y flag!)

parent 312ed1a4
No related branches found
No related tags found
No related merge requests found
...@@ -36,8 +36,9 @@ if [ "$ARCH" = "i686" ]; then ARCH="i386"; fi ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment