mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
remove interactions from update
allowing for rolling releases
This commit is contained in:
parent
3cca47b0f1
commit
373c64e95f
3 changed files with 10 additions and 6 deletions
|
@ -126,7 +126,7 @@ fi
|
||||||
|
|
||||||
# Let's check if all dependencies are met
|
# Let's check if all dependencies are met
|
||||||
function fuGET_DEPS {
|
function fuGET_DEPS {
|
||||||
local myPACKAGES="apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker curl dialog dnsutils docker.io docker-compose dstat ethtool fail2ban genisoimage git glances grc html2text htop ifupdown iptables iw jq libcrack2 libltdl7 lm-sensors man mosh multitail net-tools npm ntp openssh-server openssl pass prips syslinux psmisc pv python-pip unattended-upgrades unzip vim wireless-tools wpasupplicant"
|
local myPACKAGES="apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker curl debconf-utils dialog dnsutils docker.io docker-compose dstat ethtool fail2ban genisoimage git glances grc html2text htop ifupdown iptables iw jq libcrack2 libltdl7 lm-sensors man mosh multitail net-tools npm ntp openssh-server openssl pass prips syslinux psmisc pv python-pip unattended-upgrades unzip vim wireless-tools wpasupplicant"
|
||||||
add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
|
add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
|
||||||
echo
|
echo
|
||||||
echo "### Getting update information."
|
echo "### Getting update information."
|
||||||
|
@ -136,6 +136,8 @@ echo
|
||||||
echo "### Upgrading packages."
|
echo "### Upgrading packages."
|
||||||
echo
|
echo
|
||||||
# Downlaod and upgrade packages, but silently keep existing configs
|
# Downlaod and upgrade packages, but silently keep existing configs
|
||||||
|
echo "docker.io docker.io/restart boolean true" | debconf-set-selections -v
|
||||||
|
echo "debconf debconf/frontend select noninteractive" | debconf-set-selections -v
|
||||||
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes
|
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes
|
||||||
echo
|
echo
|
||||||
echo "### Installing T-Pot dependencies."
|
echo "### Installing T-Pot dependencies."
|
||||||
|
|
|
@ -101,7 +101,7 @@ tasksel tasksel/first multiselect ubuntu-server
|
||||||
########################
|
########################
|
||||||
### Package Installation
|
### Package Installation
|
||||||
########################
|
########################
|
||||||
d-i pkgsel/include string apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker curl dialog dnsutils docker.io docker-compose dstat ethtool fail2ban genisoimage git glances grc html2text htop ifupdown iptables iw jq libcrack2 libltdl7 lm-sensors man mosh multitail net-tools npm ntp openssh-server openssl pass prips syslinux psmisc pv python-pip unzip vim wireless-tools wpasupplicant
|
d-i pkgsel/include string apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker curl debconf-utils dialog dnsutils docker.io docker-compose dstat ethtool fail2ban genisoimage git glances grc html2text htop ifupdown iptables iw jq libcrack2 libltdl7 lm-sensors man mosh multitail net-tools npm ntp openssh-server openssl pass prips syslinux psmisc pv python-pip unzip vim wireless-tools wpasupplicant
|
||||||
|
|
||||||
#################
|
#################
|
||||||
### Update Policy
|
### Update Policy
|
||||||
|
|
10
update.sh
10
update.sh
|
@ -157,16 +157,18 @@ echo
|
||||||
}
|
}
|
||||||
|
|
||||||
function fuUPDATER () {
|
function fuUPDATER () {
|
||||||
local myPACKAGES="apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker curl dialog dnsutils docker.io docker-compose dstat ethtool fail2ban genisoimage git glances grc html2text htop ifupdown iptables iw jq libcrack2 libltdl7 lm-sensors man mosh multitail net-tools npm ntp openssh-server openssl pass prips syslinux psmisc pv python-pip unattended-upgrades unzip vim wireless-tools wpasupplicant"
|
local myPACKAGES="apache2-utils apparmor apt-transport-https aufs-tools bash-completion build-essential ca-certificates cgroupfs-mount cockpit cockpit-docker curl debconf-utils dialog dnsutils docker.io docker-compose dstat ethtool fail2ban genisoimage git glances grc html2text htop ifupdown iptables iw jq libcrack2 libltdl7 lm-sensors man mosh multitail net-tools npm ntp openssh-server openssl pass prips syslinux psmisc pv python-pip unattended-upgrades unzip vim wireless-tools wpasupplicant"
|
||||||
echo "### Now upgrading packages ..."
|
echo "### Now upgrading packages ..."
|
||||||
apt-get -y autoclean
|
apt-get -y autoclean
|
||||||
apt-get -y autoremove
|
apt-get -y autoremove
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get -y install $myPACKAGES
|
apt-get -y install $myPACKAGES
|
||||||
# Some updates require interactive attention, you can override that for unattended upgrades.
|
|
||||||
# Be warned, this can easily break your system.
|
# Some updates require interactive attention, and the following settings will override that.
|
||||||
|
echo "docker.io docker.io/restart boolean true" | debconf-set-selections -v
|
||||||
|
echo "debconf debconf/frontend select noninteractive" | debconf-set-selections -v
|
||||||
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes
|
apt-get dist-upgrade -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" --force-yes
|
||||||
#apt-get -y dist-upgrade
|
|
||||||
npm install "https://github.com/taskrabbit/elasticsearch-dump" -g
|
npm install "https://github.com/taskrabbit/elasticsearch-dump" -g
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
hash -r
|
hash -r
|
||||||
|
|
Loading…
Reference in a new issue