This repository has been archived on 2024-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
joomla/bin/docker_up.sh

24 lines
371 B
Bash
Raw Normal View History

2023-05-20 17:29:45 +00:00
#!/bin/bash
2023-05-20 23:06:24 +00:00
# Are you root?
2023-05-20 20:37:56 +00:00
if [ "$EUID" -ne 0 ]; then
echo -e "\033[0;31mThis script must be run as root.\033[0m"
exit 1
fi
# Load environment variables from .env file
set -o allexport
source .env
set +o allexport
PROJECTNAME=$(basename "$(pwd)")
if [ "$DEBUG" = "true" ]; then
docker ps
fi
2023-05-20 17:29:45 +00:00
rm -f html/index.html
2023-05-20 20:37:56 +00:00
docker-compose up -d
docker-compose ps