adds a short to launch a root shell

This commit is contained in:
2020-04-25 22:55:54 +02:00
parent f465e4f466
commit 6d072a7f15
2 changed files with 9 additions and 1 deletions

8
root.sh Executable file
View File

@@ -0,0 +1,8 @@
#! /bin/bash
#
set -o allexport;
source .env;
set +o allexport
docker exec -it --user root $PREFIX-web /bin/bash

2
wp.sh
View 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