Skip to content

Commit

Permalink
Stop asking to restart services during the script process (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
seapagan authored Aug 13, 2022
1 parent 3ed4595 commit a6c61d8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
3 changes: 3 additions & 0 deletions comfy-chair.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
3 changes: 1 addition & 2 deletions modules/docker.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 4 additions & 5 deletions modules/nginx-php-pgsql.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/qemu-kvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion modules/updates.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit a6c61d8

Please sign in to comment.