Обновить install.sh
This commit is contained in:
parent
f7b86d0af1
commit
dfcd7487a7
13
install.sh
13
install.sh
@ -46,13 +46,22 @@ echo "datasource_list: [ None ]" >> /etc/cloud/cloud.cfg.d/90_dpkg.cfg
|
|||||||
dpkg-reconfigure cloud-init
|
dpkg-reconfigure cloud-init
|
||||||
apt purge -y cloud-init && rm -rf /etc/cloud/ && rm -rf /var/lib/cloud/
|
apt purge -y cloud-init && rm -rf /etc/cloud/ && rm -rf /var/lib/cloud/
|
||||||
|
|
||||||
apt-get -y remove unattended-upgrades && systemctl stop apt-daily.timer && systemctl disable apt-daily.timer && systemctl stop apt-daily-upgrade.timer && systemctl disable apt-daily-upgrade.timer && systemctl disable apt-daily.service && systemctl daemon-reload
|
apt-get -y remove unattended-upgrades
|
||||||
|
|
||||||
|
systemctl stop apt-daily.timer
|
||||||
|
systemctl disable apt-daily.timer
|
||||||
|
systemctl stop apt-daily-upgrade.timer
|
||||||
|
systemctl disable apt-daily-upgrade.timer
|
||||||
|
systemctl disable apt-daily.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
sed -i -e 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
|
sed -i -e 's/APT::Periodic::Update-Package-Lists "1";/APT::Periodic::Update-Package-Lists "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
|
||||||
sed -i -e 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
|
sed -i -e 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
|
||||||
|
|
||||||
snap remove --purge snapd && apt-get -y remove snapd && apt-get -y autoremove
|
snap remove --purge snapd && apt-get -y remove snapd && apt-get -y autoremove
|
||||||
|
|
||||||
apt install -y netplan.io isc-dhcp-client isc-dhcp-common mc net-tools iputils-ping inetutils-traceroute htop ca-certificates apt-utils aptitude locales git squashfs-tools tzdata fdisk gdisk mc net-tools iputils-ping inetutils-traceroute htop ca-certificates apt-utils aptitude locales git iproute2
|
apt install -y netplan.io isc-dhcp-client isc-dhcp-common mc net-tools iputils-ping inetutils-traceroute htop ca-certificates
|
||||||
|
apt install -y apt-utils aptitude locales git squashfs-tools tzdata fdisk gdisk mc net-tools iputils-ping inetutils-traceroute iproute2
|
||||||
|
|
||||||
### ? systemctl disable snapd.service && systemctl disable snapd.socket && systemctl disable snapd.seeded.service && systemctl mask snapd.service && rm -rf /var/cache/snapd/ && apt autoremove --purge snapd -y && rm -rf ~/snap
|
### ? systemctl disable snapd.service && systemctl disable snapd.socket && systemctl disable snapd.seeded.service && systemctl mask snapd.service && rm -rf /var/cache/snapd/ && apt autoremove --purge snapd -y && rm -rf ~/snap
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user