switches to sh instead of bash
This commit is contained in:
20
root.sh
20
root.sh
@@ -1,8 +1,18 @@
|
||||
#! /bin/bash
|
||||
#! /bin/sh
|
||||
#
|
||||
|
||||
set -o allexport;
|
||||
source .env;
|
||||
set +o allexport
|
||||
if [ -f .env ]
|
||||
then
|
||||
set -o allexport;
|
||||
. ./.env;
|
||||
set +o allexport
|
||||
else
|
||||
echo Missing .env file
|
||||
exit 1
|
||||
fi
|
||||
|
||||
docker exec -it --user root $DOCKER_PREFIX-web /bin/bash
|
||||
docker exec \
|
||||
-it \
|
||||
--user root \
|
||||
${DOCKER_PREFIX}-web \
|
||||
/bin/bash
|
||||
|
||||
Reference in New Issue
Block a user