Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Commit

Permalink
Merge pull request #70 from blinkreaction/develop
Browse files Browse the repository at this point in the history
Release v1.2.2
  • Loading branch information
Leonid Makarov committed Dec 4, 2015
2 parents 086cdc5 + 7662291 commit 993b649
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Docker and Docker Compose based environment for Drupal.

**For a fully working example of Drude setup take a loot at:**
**For a fully working example of Drude setup take a look at:**
- [Drupal 7 sample project](https://github.com/blinkreaction/drude-d7-testing)
- [Drupal 8 sample project](https://github.com/blinkreaction/drude-d8-testing)

Expand Down
12 changes: 6 additions & 6 deletions bin/dsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

DSH_VERSION=1.9.1
DSH_VERSION=1.9.2

help ()
{
Expand Down Expand Up @@ -892,7 +892,7 @@ _bash ()
container_name="$1"
fi
local container_id
container_id='$(docker-compose ps -q '$container_name')';
container_id='$(docker_compose ps -q '$container_name')';
# Drop /cygdrive prefix if the working directory is opened as /cygdrive/<driveletter>/.. instead of /<driveletter>..
cwd=$(pwd); cwd=${cwd#/cygdrive}
command="cd $cwd && docker exec -it $container_id bash -i";
Expand Down Expand Up @@ -1170,15 +1170,15 @@ _set_cli_uid ()
# Let uid to be set with the DRUDE_SET_UID env variable
if [[ $DRUDE_SET_UID != "" ]]; then
local host_uid=$DRUDE_SET_UID
local container_uid=$(docker exec $(docker-compose ps -q cli) id -u)
local container_uid=$(docker exec $(docker_compose ps -q cli) id -u)

if [[ $container_uid != $host_uid ]]; then
echo-green "Changing user uid in cli from $container_uid to $host_uid..."
docker exec -it -u root $(docker-compose ps -q cli) usermod -u $host_uid docker
docker exec -it -u root $(docker_compose ps -q cli) usermod -u $host_uid docker
echo-green "Reseting permissions on /var/www..."
docker exec -it -u root $(docker-compose ps -q cli) chown -R docker:users /var/www
docker exec -it -u root $(docker_compose ps -q cli) chown -R docker:users /var/www
echo-green "Restarting php daemon..."
docker exec -it -u root $(docker-compose ps -q cli) supervisorctl restart php5-fpm
docker exec -it -u root $(docker_compose ps -q cli) supervisorctl restart php5-fpm
else
echo-green "Container and host uids already match ($container_uid)."
fi
Expand Down

0 comments on commit 993b649

Please sign in to comment.