shlink/indocker

8 lines
211 B
Bash
Executable file

#!/usr/bin/env bash
# Run docker containers if they are not up yet
if ! [[ $(docker ps | grep shlink_php) ]]; then
docker-compose up -d
fi
docker exec -it shlink_php /bin/sh -c "cd /home/shlink/www && $*"