summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/mini6
-rwxr-xr-xhooks/minimal6
2 files changed, 10 insertions, 2 deletions
diff --git a/hooks/mini b/hooks/mini
index c33186e..e7f6ff1 100755
--- a/hooks/mini
+++ b/hooks/mini
@@ -33,10 +33,14 @@ rm -rf /usr/share/info/*
rm -rf /usr/share/zoneinfo/*
rm -rf /var/cache/man/*
-# Cleaning apt
+# Cleaning apt lists
rm -rf /var/lib/apt/lists
mkdir -p /var/lib/apt/lists/partial
+# Cleaning apt cache
+rm -rf /var/cache/apt
+mkdir -p /var/cache/apt/archives/partial
+
# Truncating logs
for FILE in $(find /var/log/ -type f)
do
diff --git a/hooks/minimal b/hooks/minimal
index ff57deb..5761abb 100755
--- a/hooks/minimal
+++ b/hooks/minimal
@@ -25,10 +25,14 @@ find . -name *~ | xargs rm -f
rm -rf /var/cache/man/*
-# Cleaning apt
+# Cleaning apt lists
rm -rf /var/lib/apt/lists
mkdir -p /var/lib/apt/lists/partial
+# Cleaning apt cache
+rm -rf /var/cache/apt
+mkdir -p /var/cache/apt/archives/partial
+
# Truncating logs
for FILE in $(find /var/log/ -type f)
do