Kaynağa Gözat

adds a short to launch a root shell

test
ebeveyn
işleme
6d072a7f15
2 değiştirilmiş dosya ile 9 ekleme ve 1 silme
  1. 8
    0
      root.sh
  2. 1
    1
      wp.sh

+ 8
- 0
root.sh Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

@@ -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…
İptal
Kaydet