fix(nala): remove autoclean from system-cleanup.sh (#697)

* Removing autoclean for apt | nala

Removing autoclean command for apt | nala because there is no such command on debian especially for nala

* Update system-cleanup.sh

* Update system-cleanup.sh

* Update system-cleanup.sh
This commit is contained in:
Angelos Giannourakos 2024-10-31 21:02:25 +02:00 committed by GitHub
parent 1d61778736
commit f4c20c80f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7,10 +7,8 @@ cleanup_system() {
case "$PACKAGER" in case "$PACKAGER" in
apt-get|nala) apt-get|nala)
"$ESCALATION_TOOL" "$PACKAGER" clean "$ESCALATION_TOOL" "$PACKAGER" clean
"$ESCALATION_TOOL" "$PACKAGER" autoremove -y "$ESCALATION_TOOL" "$PACKAGER" autoremove -y
"$ESCALATION_TOOL" "$PACKAGER" autoclean
"$ESCALATION_TOOL" du -h /var/cache/apt "$ESCALATION_TOOL" du -h /var/cache/apt
"$ESCALATION_TOOL" "$PACKAGER" clean
;; ;;
zypper) zypper)
"$ESCALATION_TOOL" "$PACKAGER" clean -a "$ESCALATION_TOOL" "$PACKAGER" clean -a