#!/bin/bash ENTRY="./entrypoint.sh" if [ "$1" == "ubuntu" ]; then ENTRY="./entrypoint-ubuntu.sh" fi exec bash -xc $ENTRY 2>&1 | tee /root/stuff.log