Fix unattended perms
This commit is contained in:
parent
888abf69ce
commit
d5333384b8
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,8 @@ set -euo pipefail
|
||||||
|
|
||||||
sudo apt install -y unattended-upgrades apt-listchanges
|
sudo apt install -y unattended-upgrades apt-listchanges
|
||||||
|
|
||||||
|
sudo -u root -s
|
||||||
|
|
||||||
echo "/etc/apt/apt.conf.d/50unattended-upgrades:"
|
echo "/etc/apt/apt.conf.d/50unattended-upgrades:"
|
||||||
cat /etc/apt/apt.conf.d/50unattended-upgrades
|
cat /etc/apt/apt.conf.d/50unattended-upgrades
|
||||||
|
|
||||||
|
@ -22,3 +24,6 @@ if [[ $prompt == "y" ]]; then
|
||||||
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections
|
echo unattended-upgrades unattended-upgrades/enable_auto_updates boolean true | debconf-set-selections
|
||||||
dpkg-reconfigure -f noninteractive unattended-upgrades
|
dpkg-reconfigure -f noninteractive unattended-upgrades
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
exit
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue