Finishing touches

This commit is contained in:
2020-02-25 23:13:21 +00:00
committed by Andrejus
parent c4ce39b965
commit fc5ba9f99d
17 changed files with 157 additions and 121 deletions

View File

@@ -1,14 +1,15 @@
#!/bin/bash
#
# Always updates apt, upgrades apt, and installes 00-apt-pkglist
# apt update and upgrade
#
# Install list of packages in ./00-apt-pkglist
#
readonly package_list_file="00-apt-pkglist"
# apt update and upgrade non-interactively
sudo apt-get update -y
DEBIAN_FRONTEND=noninteractive sudo apt-get \
-o Dpkg::Options::="--force-confdef" \
-o Dpkg::Options::="--force-confold" upgrade -y
update
upgrade
# Package installs
readonly apt_pkglist=$(cat $install_dir/00-apt-pkglist)
sudo apt-get install -y $apt_pkglist
readonly package_list=$(cat $install_dir/$package_list_file)
install -y "$package_list"