2020-06-22 22:36:54 -04:00
|
|
|
#!/usr/bin/env bash
|
2020-04-13 00:06:13 -04:00
|
|
|
|
|
|
|
|
if [[ "${OSTYPE}" == "linux-gnu" ]]; then
|
|
|
|
|
OS=$(lsb_release -si)
|
2022-01-24 14:00:47 -05:00
|
|
|
VERSION=$(cat /etc/issue)
|
2024-02-06 21:26:49 -05:00
|
|
|
if [[ "${OS}" == *"Ubuntu"* ]]; then
|
2024-09-18 12:25:37 -04:00
|
|
|
if [[ "${VERSION}" == Ubuntu\ 18.04* || "${VERSION}" == Ubuntu\ 20.04* || "${VERSION}" == Ubuntu\ 22.04* || "${VERSION}" == Ubuntu\ 22.10* || "${VERSION}" == Ubuntu\ 23.04* || "${VERSION}" == Ubuntu\ 23.10* || "${VERSION}" == Ubuntu\ 24.04* ]]; then
|
2022-01-24 14:00:47 -05:00
|
|
|
echo "\n---- linux-gnu installation process started ----"
|
2023-01-02 20:33:57 -05:00
|
|
|
./script/install/install_debian_dependency.sh
|
2022-01-24 14:00:47 -05:00
|
|
|
else
|
2024-09-18 12:25:37 -04:00
|
|
|
echo "Your version is not supported, only support 18.04, 20.04 and 22.04 - 24.04 : ${VERSION}"
|
2022-01-24 14:00:47 -05:00
|
|
|
fi
|
2024-02-06 21:26:49 -05:00
|
|
|
elif [[ "${OS}" == *"Debian"* ]]; then
|
2023-01-02 20:33:57 -05:00
|
|
|
./script/install/install_debian_dependency.sh
|
2020-04-13 00:06:13 -04:00
|
|
|
else
|
2023-01-02 20:33:57 -05:00
|
|
|
./script/install/install_debian_dependency.sh
|
2024-09-18 12:25:37 -04:00
|
|
|
echo "Your Linux system is not supported, only support Ubuntu 18.04 or Ubuntu 20.04 or Ubuntu 22.04 - Ubuntu 23.10 - Ubuntu 24.04 ."
|
2020-04-13 00:06:13 -04:00
|
|
|
fi
|
|
|
|
|
elif [[ "${OSTYPE}" == "darwin"* ]]; then
|
|
|
|
|
echo "\n---- Darwin installation process started ----"
|
2023-01-02 20:33:57 -05:00
|
|
|
./script/install/install_OSX_dependency.sh
|
2020-04-13 00:06:13 -04:00
|
|
|
fi
|