From 3dc96d8595e695cc182aa2b4ea9e0261aa06b478 Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Thu, 10 Oct 2024 16:51:39 +0800 Subject: [PATCH] faet(crontab): auto apt-get update&upgrade --- crontab/autoApt.job | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crontab/autoApt.job b/crontab/autoApt.job index 2f4f396..eb86e90 100755 --- a/crontab/autoApt.job +++ b/crontab/autoApt.job @@ -1,3 +1,7 @@ #!/usr/bin/bash -apt-get update && apt-get upgrade -y && apt-get autoclean && apt-get autoremove -y \ No newline at end of file +apt update \ +&& apt upgrade -y \ +&& apt dist-upgrade -y \ +&& apt autoclean \ +&& apt autoremove -y \ No newline at end of file