mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update install.sh
This commit is contained in:
parent
f1232990ae
commit
ab3287de38
11
install.sh
11
install.sh
@ -245,7 +245,7 @@ setup_progress_bar_script
|
||||
source "$PROGRESS_BAR_FILE" # Source the progress bar script
|
||||
|
||||
FUNCTIONS=(
|
||||
detect_os_and_package_manager # detect os and package manager
|
||||
detect_os_cpu_and_package_manager # detect os and package manager
|
||||
display_what_will_be_installed # display os, version, ip
|
||||
install_python312
|
||||
update_package_manager # update dnf/yum/apt-get
|
||||
@ -491,7 +491,7 @@ detect_installed_panels() {
|
||||
|
||||
|
||||
|
||||
detect_os_and_package_manager() {
|
||||
detect_os_cpu_and_package_manager() {
|
||||
if [ -f "/etc/os-release" ]; then
|
||||
. /etc/os-release
|
||||
|
||||
@ -521,6 +521,11 @@ detect_os_and_package_manager() {
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
architecture=$(lscpu | grep Architecture | awk '{print $2}')
|
||||
|
||||
|
||||
|
||||
else
|
||||
echo -e "${RED}Could not detect Linux distribution from /etc/os-release${RESET}"
|
||||
echo -e "${RED}INSTALL FAILED${RESET}"
|
||||
@ -619,8 +624,6 @@ docker_compose_up(){
|
||||
docker --context default volume rm root_openadmin_mysql > /dev/null 2>&1 # delete database
|
||||
fi
|
||||
|
||||
architecture=$(lscpu | grep Architecture | awk '{print $2}')
|
||||
|
||||
if [ "$architecture" == "aarch64" ]; then
|
||||
sed -i 's/mysql\/mysql-server/mariadb:10-focal/' docker-compose.yml
|
||||
# todo: replace in docker-compose.yml if needed!
|
||||
|
Loading…
Reference in New Issue
Block a user