Skip to content

Commit

Permalink
Merge hotfix/12.7.1 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
agolybev committed Dec 23, 2024
2 parents 9c6bd32 + bbd7215 commit a4b3906
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 146 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ on:
type: boolean
description: 'Ubuntu 22.04'
default: true
ubuntu2404:
type: boolean
description: 'Ubuntu 24.04'
default: true

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
Expand Down Expand Up @@ -129,6 +133,13 @@ jobs:
"os": "ubuntu2204",
"distr": "generic",
"box-ver": "4.3.10"
},
{
"execute": '${{ github.event.inputs.ubuntu2404 || true }}',
"name": "Ubuntu24.04",
"os": "ubuntu-24.04",
"distr": "bento",
"box-ver": "202404.26.0"
}
]
}' | jq -c '{include: [.include[] | select(.execute == true)]}')
Expand Down
39 changes: 0 additions & 39 deletions .github/workflows/reusable-destroy-runner.yml

This file was deleted.

94 changes: 0 additions & 94 deletions .github/workflows/reusable-make-runner.yml

This file was deleted.

2 changes: 1 addition & 1 deletion install-Debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ while [ "$1" != "" ]; do
done

if [ -z "${INSTALLATION_TYPE}" ]; then
INSTALLATION_TYPE="WORKSPACE_ENTERPRISE";
INSTALLATION_TYPE=${INSTALLATION_TYPE:-"WORKSPACE_ENTERPRISE"}
fi

if [ -z "${UPDATE}" ]; then
Expand Down
2 changes: 1 addition & 1 deletion install-RedHat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ while [ "$1" != "" ]; do
done

if [ -z "${INSTALLATION_TYPE}" ]; then
INSTALLATION_TYPE="WORKSPACE_ENTERPRISE";
INSTALLATION_TYPE=${INSTALLATION_TYPE:-"WORKSPACE_ENTERPRISE"}
fi

if [ -z "${UPDATE}" ]; then
Expand Down
25 changes: 14 additions & 11 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1112,11 +1112,16 @@ install_mysql_server () {
else
sed -i "s/tls_version.*/tls_version = TLSv1.2/" ${BASE_DIR}/mysql/conf.d/${PRODUCT}.cnf
fi
elif [ "$INSTALL_MAIL_SERVER" != "true" ] && [[ "$(awk -F. '{ printf("%d%03d%03d%03d", $1,$2,$3,$4); }' <<< $MYSQL_VERSION)" -ge "8000034000" ]]; then
if grep -q "mysql_native_password" ${BASE_DIR}/mysql/initdb/setup.sql; then
sed -i 's/mysql_native_password/caching_sha2_password/g' ${BASE_DIR}/mysql/initdb/setup.sql
fi

if file_exists "${BASE_DIR}/mysql/initdb/setup.sql"; then
if grep -q "caching_sha2_password" ${BASE_DIR}/mysql/initdb/setup.sql; then
sed -i 's/caching_sha2_password/mysql_native_password/g' ${BASE_DIR}/mysql/initdb/setup.sql
elif ! grep -q "mysql_native_password" ${BASE_DIR}/mysql/initdb/setup.sql; then
sed -i 's/IDENTIFIED BY/IDENTIFIED WITH mysql_native_password BY/g' ${BASE_DIR}/mysql/initdb/setup.sql
fi
fi

docker restart ${MYSQL_SERVER_ID};
fi

Expand All @@ -1132,16 +1137,12 @@ log-error = /var/log/mysql/error.log" > ${BASE_DIR}/mysql/conf.d/${PRODUCT}.cnf
[[ "$(awk -F. '{ printf("%d%03d%03d%03d", $1,$2,$3,$4); }' <<< $MYSQL_VERSION)" -lt "8000000000" ]] && echo "tls_version = TLSv1.2" >> ${BASE_DIR}/mysql/conf.d/${PRODUCT}.cnf
chmod 0644 ${BASE_DIR}/mysql/conf.d/${PRODUCT}.cnf
fi

if [ "$INSTALL_MAIL_SERVER" = "true" ]; then
MYSQL_AUTHENTICATION_PLUGIN="WITH mysql_native_password"
fi

if ! file_exists ${BASE_DIR}/mysql/initdb/setup.sql; then
echo "CREATE USER '$MYSQL_USER'@'%' IDENTIFIED BY '$MYSQL_PASSWORD';
CREATE USER '$MYSQL_MAIL_USER'@'%' IDENTIFIED $MYSQL_AUTHENTICATION_PLUGIN BY '$MYSQL_MAIL_ROOT_PASSWORD';
ALTER USER 'root'@'%' IDENTIFIED $MYSQL_AUTHENTICATION_PLUGIN BY '$MYSQL_ROOT_PASSWORD';
ALTER USER 'root'@'localhost' IDENTIFIED $MYSQL_AUTHENTICATION_PLUGIN BY '$MYSQL_ROOT_PASSWORD';
echo "CREATE USER '$MYSQL_USER'@'%' IDENTIFIED WITH mysql_native_password BY '$MYSQL_PASSWORD';
CREATE USER '$MYSQL_MAIL_USER'@'%' IDENTIFIED WITH mysql_native_password BY '$MYSQL_MAIL_ROOT_PASSWORD';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '$MYSQL_ROOT_PASSWORD';
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '$MYSQL_ROOT_PASSWORD';
GRANT ALL PRIVILEGES ON *.* TO '$MYSQL_ROOT_USER'@'%';
GRANT ALL PRIVILEGES ON *.* TO '$MYSQL_USER'@'%';
GRANT ALL PRIVILEGES ON *.* TO '$MYSQL_MAIL_USER'@'%';
Expand Down Expand Up @@ -2314,6 +2315,8 @@ start_installation () {
check_vsyscall
fi
fi
elif [[ -z $(get_container_id "$MAIL_CONTAINER_NAME") ]]; then
INSTALL_MAIL_SERVER="false";
fi

if [ "$MAKESWAP" == "true" ]; then
Expand Down

0 comments on commit a4b3906

Please sign in to comment.