notes/altjira/wekan.sh

12 lines
225 B
Bash
Executable File

#! /bin/bash
docker-compose -f wekan.compose up &
pid=$!
function handle() {
kill $pid
docker-compose -f wekan.compose rm
docker rm -f $(docker ps -a | grep wekan | awk '{print $NF}')
}
trap handle SIGINT
wait $pid