Commit 7df9e0ca authored by Tom Niget's avatar Tom Niget Committed by Tom Niget

demo: add scripts for cleaning leftover files

The demo expects its storage directory to be clean at start, otherwise undefined behavior will occur.
parent 0ddd5ced
To run the demo, make sure all the dependencies are installed and run `./cleanfull.sh` and then `./demo 8000` (or any port).
#!/usr/bin/env bash
for b in $(sudo ip l | grep -Po 'NETNS\w\w[\d\-a-f]+'); do sudo ip l del $b; done
pkill screen
killall python
killall python3
find . -name '*.db' -delete
find . -name '*.crt' -delete
./clean.sh; find . -name '*.crt' -delete; find . -name '*.db' -delete; find . -name '*.log' -delete
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment