Made commands run indocker to use the shlink_php container instead of the shlink_swoole

This commit is contained in:
Alejandro Celaya 2019-08-07 11:05:21 +02:00
parent 8407fee96d
commit 685ee51e1f

View File

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