Adds script to start cyberchef

This commit is contained in:
Jonathan Hodgson 2020-04-30 21:36:48 +01:00
parent 4a5dcc677c
commit ad0946598a

15
bin/.bin/cyberchef Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
export SUDO_ASKPASS='/usr/lib/seahorse/ssh-askpass'
# Make sure the docker daemon is running
if ! systemctl status --no-pager docker.service > /dev/null; then
sudo -A systemctl start docker.service
fi
# Make sure the container is running
if ! docker container ls | grep -q mpepping/cyberchef; then
sudo -A systemctl start cyberchef
fi
firefox-developer-edition localhost:8000