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 #71 from blinkreaction/develop
Browse files Browse the repository at this point in the history
Release v1.2.3
  • Loading branch information
Leonid Makarov committed Dec 4, 2015
2 parents 993b649 + 66074e0 commit ddecba7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/dsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

DSH_VERSION=1.9.2
DSH_VERSION=1.9.3

help ()
{
Expand Down Expand Up @@ -1174,11 +1174,11 @@ _set_cli_uid ()

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 -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 -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 -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 ddecba7

Please sign in to comment.