shlink/indocker

9 lines
194 B
Text
Raw Normal View History

2017-01-20 00:56:45 +03:00
#!/usr/bin/env bash
2018-12-02 21:13:49 +03:00
# Run docker containers if they are not up yet
if ! [[ $(docker ps | grep shlink_swoole) ]]; then
2018-12-02 21:13:49 +03:00
docker-compose up -d
fi
docker exec -it shlink_swoole /bin/sh -c "$*"