ソースを参照

adds a short to launch a root shell

test
コミット
6d072a7f15
2個のファイルの変更9行の追加1行の削除
  1. 8
    0
      root.sh
  2. 1
    1
      wp.sh

+ 8
- 0
root.sh ファイルの表示

@@ -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 ファイルの表示

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

読み込み中…
キャンセル
保存