switches to sh instead of bash

This commit is contained in:
2021-04-11 22:31:54 +02:00
parent 40447487fe
commit 5001a9e2cc
5 changed files with 132 additions and 72 deletions

20
root.sh
View File

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