mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
remove interactions from update
allowing for rolling releases
This commit is contained in:
10
update.sh
10
update.sh
@ -157,16 +157,18 @@ echo
|
||||
}
|
||||
|
||||
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 ..."
|
||||
apt-get -y autoclean
|
||||
apt-get -y autoremove
|
||||
apt-get update
|
||||
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 -y dist-upgrade
|
||||
|
||||
npm install "https://github.com/taskrabbit/elasticsearch-dump" -g
|
||||
pip install --upgrade pip
|
||||
hash -r
|
||||
|
Reference in New Issue
Block a user