|
|
|
@ -75,7 +75,7 @@ fi |
|
|
|
|
case "$state_should" in |
|
|
|
|
present) |
|
|
|
|
cat << EOF |
|
|
|
|
if [ -f /var/cache/apt/pkgcache.bin ] && [ "\$( stat --format %Y /var/cache/apt/pkgcache.bin )" -lt "\$( date +%s -d '-1 day' )" ] |
|
|
|
|
if [ ! -f /var/cache/apt/pkgcache.bin ] || [ "\$( stat --format %Y /var/cache/apt/pkgcache.bin )" -lt "\$( date +%s -d '-1 day' )" ] |
|
|
|
|
then echo apt-get update > /dev/null 2>&1 || true |
|
|
|
|
fi |
|
|
|
|
EOF |
|
|
|
|