Browse Source

adds a short to launch a root shell

test
parent
commit
6d072a7f15
2 changed files with 9 additions and 1 deletions
  1. 8
    0
      root.sh
  2. 1
    1
      wp.sh

+ 8
- 0
root.sh View File

#! /bin/bash
#

set -o allexport;
source .env;
set +o allexport

docker exec -it --user root $PREFIX-web /bin/bash

+ 1
- 1
wp.sh View File

source .env; source .env;
set +o allexport set +o allexport


docker exec -it $PREFIX-web /bin/bash -c "su www-data -s /bin/bash"
docker exec -it --user www-data $PREFIX-web /bin/bash

Loading…
Cancel
Save