From 485c2b70bbfd5acfb14ff909844f91027d613aff 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