From 06f1a9755fc0fc1b50b8357f466aca36831074a0 Mon Sep 17 00:00:00 2001 From: Brian <75031747+CheckYourFax@users.noreply.github.com> Date: Tue, 11 Aug 2026 20:10:41 +0200 Subject: [PATCH] fix(Apps/Installer): Prepend `env` to prevent script failure in root shell (#26999) --- apps/installer/includes/os_configs/ubuntu.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/installer/includes/os_configs/ubuntu.sh b/apps/installer/includes/os_configs/ubuntu.sh index deaa025ce..02566ee0c 100644 --- a/apps/installer/includes/os_configs/ubuntu.sh +++ b/apps/installer/includes/os_configs/ubuntu.sh @@ -29,7 +29,7 @@ esac $SUDO apt update # shared deps -$SUDO DEBIAN_FRONTEND="noninteractive" \ +$SUDO env DEBIAN_FRONTEND="noninteractive" \ apt-get -y install ccache clang cmake curl make unzip jq screen tmux \ libreadline-dev libbz2-dev git gcc g++ libssl-dev \ libncurses-dev libboost-all-dev gdb gdbserver expect @@ -39,10 +39,10 @@ if [[ "$UBUNTU_VERSION" == "26.04" ]]; then # libstdc++-16-dev: clang 21 links against the GCC 16 toolchain, while the # default g++ is GCC 15 and only brings the GCC 15 C++ dev files, so cmake # fails with "cannot find -lstdc++" without it. - $SUDO DEBIAN_FRONTEND="noninteractive" \ + $SUDO env DEBIAN_FRONTEND="noninteractive" \ apt-get -y install libgoogle-perftools-dev default-libmysqlclient-dev libstdc++-16-dev else - $SUDO DEBIAN_FRONTEND="noninteractive" \ + $SUDO env DEBIAN_FRONTEND="noninteractive" \ apt-get -y install google-perftools libmysqlclient-dev libncurses5-dev libncursesw5-dev fi @@ -56,10 +56,10 @@ if [[ $DOCKER != 1 && $SKIP_MYSQL_INSTALL != 1 ]]; then wget https://dev.mysql.com/get/mysql-apt-config_0.8.35-1_all.deb -P "$VAR_PATH" # resolve expired key issue sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A8D3785C - $SUDO DEBIAN_FRONTEND="noninteractive" dpkg -i "$VAR_PATH/mysql-apt-config_0.8.35-1_all.deb" + $SUDO env DEBIAN_FRONTEND="noninteractive" dpkg -i "$VAR_PATH/mysql-apt-config_0.8.35-1_all.deb" $SUDO apt-get update fi - $SUDO DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server + $SUDO env DEBIAN_FRONTEND="noninteractive" apt-get install -y mysql-server fi