diff --git a/package/scripts/db/mysql_util.sh b/package/scripts/db/mysql_util.sh index 8cbb0391..597ef306 100755 --- a/package/scripts/db/mysql_util.sh +++ b/package/scripts/db/mysql_util.sh @@ -12,7 +12,7 @@ SQL_SERVICE="mariadb" check_for_container () { PRINT_STATUS=$1 # Check if we're in a Docker container - if [[ $(cat /proc/1/sched | head -n 1) == *"bash"* ]]; then + if [[ $(cat /proc/1/cgroup | head -n 1) == *"docker"* ]]; then #if [ -f /.dockerenv ]; then DOCKER_CONTAINER=true if [[ $PRINT_STATUS == "-p" ]]; then echo "ACA is running in a container..." | tee -a "$LOG_FILE"; fi