os-upgrade.sh: replace 'apt-get' with 'apt'.
This commit is contained in:
parent
724800e67c
commit
011cc0d4ac
@ -1,9 +1,14 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
apt-get update
|
#apt-get update
|
||||||
apt-get dist-upgrade -y
|
#apt-get dist-upgrade -y
|
||||||
apt-get autoremove -y
|
#apt-get autoremove -y
|
||||||
apt-get clean
|
#apt-get clean
|
||||||
|
|
||||||
|
apt update -y
|
||||||
|
apt dist-upgrade -y
|
||||||
|
apt autoremove -y
|
||||||
|
apt clean
|
||||||
|
|
||||||
if [[ -f "/var/run/reboot-required" ]]; then
|
if [[ -f "/var/run/reboot-required" ]]; then
|
||||||
echo -e "\n\t[ \033[31m\033[1m Reboot required! \033[m\033[m ]\n"
|
echo -e "\n\t[ \033[31m\033[1m Reboot required! \033[m\033[m ]\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user