do not create it as file, it must be dir

This commit is contained in:
ander 2021-11-01 23:00:15 +02:00
parent e24165304c
commit e7d8fb874d
No known key found for this signature in database
GPG key ID: 0A2971E562D618F3

View file

@ -93,7 +93,7 @@ case "$state_should" in
# https://code.ungleich.ch/ungleich-public/cdist/-/issues/861 # https://code.ungleich.ch/ungleich-public/cdist/-/issues/861
apt_opts="-o Acquire::AllowReleaseInfoChange::Suite=true -o Acquire::AllowReleaseInfoChange::Version=true" apt_opts="-o Acquire::AllowReleaseInfoChange::Suite=true -o Acquire::AllowReleaseInfoChange::Version=true"
if [ "$(cat "$__object/explorer/index")" = 'update' ]; then if [ "$(cat "$__object/explorer/index")" = 'update' ]; then
echo 'touch /var/lib/apt/lists' echo 'if [ -d /var/lib/apt/lists ]; then touch /var/lib/apt/lists; fi'
echo "apt-get $apt_opts update || true" echo "apt-get $apt_opts update || true"
fi fi
if [ -n "$version" ]; then if [ -n "$version" ]; then