Skip to content

Commit

Permalink
idempotent cleanup cache
Browse files Browse the repository at this point in the history
  • Loading branch information
aleskxyz authored Mar 30, 2024
1 parent 2b9086c commit b8dc43b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion setup_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ sudo setcap cap_setuid+eip /usr/bin/newuidmap
sudo setcap cap_setgid+eip /usr/bin/newgidmap
sudo chmod u-s /usr/bin/newuidmap
sudo chmod u-s /usr/bin/newgidmap
sudo rm -rf ~.local/share/containers/storage/libpod/bolt_state.db
if [ ! -f ~/.local/share/containers/.clean ]; then
sudo rm -rf ~/.local/share/containers/*
sudo touch ~/.local/share/containers/.clean
fi
echo -e "[storage]\ndriver = \"vfs\"" | sudo tee /etc/containers/storage.conf > /dev/null
mkdir -p "$HOME/.docker"
echo "::endgroup::"
Expand Down

0 comments on commit b8dc43b

Please sign in to comment.