Sfoglia il codice sorgente

adds a short to launch a root shell

test
parent
commit
6d072a7f15
2 ha cambiato i file con 9 aggiunte e 1 eliminazioni
  1. 8
    0
      root.sh
  2. 1
    1
      wp.sh

+ 8
- 0
root.sh Vedi File

@@ -0,0 +1,8 @@
#! /bin/bash
#

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

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

+ 1
- 1
wp.sh Vedi File

@@ -5,4 +5,4 @@ set -o allexport;
source .env;
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…
Annulla
Salva