#!/bin/bash if [ "$(id -u)" != "0" ]; then echo -e "\033[31mThis script requires superuser rights.\033[0m" exit 0 fi SECRETS_PATH=/data/secrets/$SERVER_DOMAIN/$SERVER_DOMAIN.env trap 'echo -e "\033[31minstall.sh: Something went wrong\033[0m"; exit 1' ERR set -e export DEBIAN_FRONTEND=noninteractive source $SECRETS_PATH sudo docker compose --env-file $SECRETS_PATH up trap - ERR echo "Install wp complete"