Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/files_external/tests/sso-setup/start-apache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ SCRIPT_DIR="${0%/*}"
docker rm -f apache 2>/dev/null > /dev/null

docker run -d --name apache -v $2:/var/www/html -v /var/www/html/data -v /var/www/html/config -v /var/www/html/extra-apps -v /tmp/shared:/shared --dns $1 --hostname httpd.domain.test icewind1991/samba-krb-test-apache-gssapi 1>&2
APACHE_IP=$(docker inspect apache --format '{{.NetworkSettings.IPAddress}}')
APACHE_IP=$(docker inspect apache --format '{{.NetworkSettings.Networks.bridge.IPAddress}}')
if [ -z "$APACHE_IP" ]; then
echo "Apache container has no bridge IP address" >&2
exit 1
fi
docker exec apache chown 33 /var/www/html/config /var/www/html/data /var/www/html/extra-apps
docker cp "$SCRIPT_DIR/apps.config.php" apache:/var/www/html/config/apps.config.php

Expand Down
7 changes: 6 additions & 1 deletion apps/files_external/tests/sso-setup/start-dc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,9 @@ docker run -dit --name dc -v /tmp/shared:/shared --hostname krb.domain.test --ca

waitContainer dc

docker inspect dc --format '{{.NetworkSettings.IPAddress}}'
DC_IP=$(docker inspect dc --format '{{.NetworkSettings.Networks.bridge.IPAddress}}')
if [ -z "$DC_IP" ]; then
echo "DC container has no bridge IP address" >&2
exit 1
fi
echo "$DC_IP"
Loading