diff --git a/comfy-chair.sh b/comfy-chair.sh index eae2d35..3cbbb55 100755 --- a/comfy-chair.sh +++ b/comfy-chair.sh @@ -4,6 +4,9 @@ # set a version number VERSION="1.2.0" +# ensure that we are not prompted to restart services during the install process +export DEBIAN_FRONTEND=noninteractive + # make sure we are running under a Debian-based OS, as this script needs the # 'apt' command and their specific packages. debian=`dpkg --version | grep "Debian"` diff --git a/modules/docker.sh b/modules/docker.sh index 3e01615..524f540 100755 --- a/modules/docker.sh +++ b/modules/docker.sh @@ -1,11 +1,10 @@ #!/usr/bin/env bash # docker.sh # install docker and docker-compose - # DONT DO ANY OF THIS IN WSL (Windows Subsystem for Linux)! if [ ! $os = "wsl" ]; then # docker. We no longer use the old V1 of docker compuse, we install v2. - sudo apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin + sudo DEBIAN_FRONTEND=noninteractive apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin # remove the need for sudo... sudo usermod -aG docker $USER else diff --git a/modules/nginx-php-pgsql.sh b/modules/nginx-php-pgsql.sh index 15bc322..32e6378 100755 --- a/modules/nginx-php-pgsql.sh +++ b/modules/nginx-php-pgsql.sh @@ -1,22 +1,21 @@ #!/usr/bin/env bash # nginx-php.sh # install the Nginx webbrowser, php7.4-fpm and Postgresql database - # we already installed all the required ppa's etc in the packages/updates so # lets just install -sudo apt install -y nginx nginx-extras php7.4-fpm postgresql-14 +sudo DEBIAN_FRONTEND=noninteractive apt install -y nginx nginx-extras php7.4-fpm postgresql-14 # also install php version 8.1 -sudo apt install -y php8.1 php8.1-fpm php8.1-cli +sudo DEBIAN_FRONTEND=noninteractive apt install -y php8.1 php8.1-fpm php8.1-cli # now some common PHP extensions ... -sudo apt install -y php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc \ +sudo DEBIAN_FRONTEND=noninteractive apt install -y php7.4-common php7.4-mysql php7.4-xml php7.4-xmlrpc \ php7.4-curl php7.4-gd php7.4-imagick php7.4-cli php7.4-dev \ php7.4-imap php7.4-mbstring php7.4-opcache php7.4-soap \ php7.4-zip php7.4-intl php7.4-pgsql php7.4-json # their php 8.1 equivalents ... -sudo apt install -y php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc \ +sudo DEBIAN_FRONTEND=noninteractive apt install -y php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc \ php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-dev \ php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap \ php8.1-zip php8.1-intl php8.1-pgsql diff --git a/modules/packages.sh b/modules/packages.sh index bfe5824..606176f 100644 --- a/modules/packages.sh +++ b/modules/packages.sh @@ -11,7 +11,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt install -y build-essential gettext \ libicu-dev libcurl4-openssl-dev checkinstall # install some 'nice to have' that are missing from very mininal images... -sudo apt install -y nano htop openssh-server openssh-client +sudo DEBIAN_FRONTEND=noninteractive apt install -y nano htop openssh-server openssh-client # install winbind and its support lib to ping WINS hosts sudo DEBIAN_FRONTEND=noninteractive apt install -y winbind libnss-winbind diff --git a/modules/qemu-kvm.sh b/modules/qemu-kvm.sh index b9f2e32..0383350 100644 --- a/modules/qemu-kvm.sh +++ b/modules/qemu-kvm.sh @@ -2,7 +2,7 @@ # qemu-kvm.sh # Install support files needed to work with KVM virtual machines using libvirt -sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager ovmf cpu-checker +sudo DEBIAN_FRONTEND=noninteractive apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager ovmf cpu-checker # after this we need to inform the user to create a bridge etc (or make it verty clear in the docs # that we dont do this. diff --git a/modules/updates.sh b/modules/updates.sh index f757ffd..46954b2 100644 --- a/modules/updates.sh +++ b/modules/updates.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # updates.sh # ensure we have the latest packages, including git and sublime text repos - +export DEBIAN_FRONTEND=noninteractive # update the package index just in case... sudo apt update