HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u90323915 (5560665)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /homepages/31/d696029188/htdocs/tiny-compress-images/bin/run-wordpress
#!/bin/bash

display_usage() {
  echo -e "Usage:\n\t$0 <version> \n\nExample:\n\t$0 45"
}

if [ -z "${WORDPRESS_VERSION}" ]; then
  if [ $# -eq 0 ]; then
    display_usage
    exit 1
  fi

  export WORDPRESS_VERSION="$1"
fi

function stop_services {
  docker-compose down
}

function teardown {
  stop_services
}

trap teardown EXIT
docker-compose up --build