forked from ungleich-public/cdist
__package_apt: pkgcache.bin may not exist
This commit is contained in:
parent
08d5814e2c
commit
b3bad9468d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue