Files
download/mysql/install.sh
耗子 758e1c8799
All checks were successful
Generate Checksums / checksums (push) Successful in 46s
feat: 清理提交
2026-01-31 07:03:45 +08:00

26 lines
690 B
Bash

#!/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 mysql "$1" "$2"
else
dl "/tmp" "/mysql/build.sh"
bash /tmp/build.sh mysql "$1" "$2"
fi
dl "/tmp" "/mysql/init.sh"
bash /tmp/init.sh mysql "$1" "$2"
rm -f /tmp/prebuilt.sh
rm -f /tmp/build.sh
rm -f /tmp/init.sh