__lxc_container: do not call rm recusivly for a file

This commit is contained in:
matze 2020-10-19 18:00:05 +02:00
commit e8aede1e91

View file

@ -168,7 +168,7 @@ LXC
# remove empty tempfile if it was created
if [ -f "$__object/parameter/no-default-config" ]; then
cat <<RM
rm -rf "\$empty_conf"
rm -f "\$empty_conf"
RM
fi
fi
@ -231,7 +231,7 @@ DONE
# apply all changes
cat <<DONE
rm -rf "$container_config"
rm -f "$container_config"
mv "\$tmpconfig" "$container_config"
DONE
echo "config" >> "$__messages_out"