#!/bin/bash source <(curl -f -s --connect-timeout 10 --retry 3 https://dl.acepanel.net/public.sh) if [ $? -ne 0 ]; then echo "Download public.sh failed, please check the network or try again later." exit 1 fi if [[ ${ARCH} == "x86_64" ]] && [[ (${OS} == "ubuntu" && ${VERSION} -ge 22) || (${OS} == "debian" && ${VERSION} -ge 12) || (${OS} == "rhel" && ${VERSION} -ge 9) ]]; then dl "/tmp" "/mysql/prebuilt.sh" bash /tmp/prebuilt.sh percona "$1" "$2" else dl "/tmp" "/mysql/build.sh" bash /tmp/build.sh percona "$1" "$2" fi dl "/tmp" "/mysql/init.sh" bash /tmp/init.sh percona "$1" "$2" rm -f /tmp/prebuilt.sh rm -f /tmp/build.sh rm -f /tmp/init.sh