Skip to content

Commit 21f9883

Browse files
authored
Update Tandoor install scripts for newer dependencies (#7826)
1 parent ab455d7 commit 21f9883

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ct/tandoor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function update_script() {
4242
mv /opt/tandoor /opt/tandoor.bak
4343
msg_ok "Backup Created"
4444

45-
NODE_VERSION="20" NODE_MODULE="yarn" setup_nodejs
45+
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
4646
PYTHON_VERSION="3.13" setup_uv
4747
fetch_and_deploy_gh_release "tandoor" "TandoorRecipes/recipes" "tarball" "latest" "/opt/tandoor"
4848

install/tandoor-install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ $STD apt-get install -y --no-install-recommends \
3030
libxmlsec1-openssl
3131
msg_ok "Installed Dependencies"
3232

33-
NODE_VERSION="20" NODE_MODULE="yarn" setup_nodejs
33+
NODE_VERSION="22" NODE_MODULE="yarn" setup_nodejs
3434
fetch_and_deploy_gh_release "tandoor" "TandoorRecipes/recipes" "tarball" "latest" "/opt/tandoor"
35-
PG_VERSION="16" setup_postgresql
35+
PG_VERSION="17" PG_MODULES="contrib" setup_postgresql
3636
PYTHON_VERSION="3.13" setup_uv
3737

3838
msg_info "Set up PostgreSQL Database"
@@ -45,6 +45,8 @@ $STD sudo -u postgres psql -c "CREATE DATABASE $DB_NAME WITH OWNER $DB_USER TEMP
4545
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET client_encoding TO 'utf8';"
4646
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET default_transaction_isolation TO 'read committed';"
4747
$STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC'"
48+
$STD sudo -u postgres psql -d "$DB_NAME" -c "CREATE EXTENSION IF NOT EXISTS unaccent;"
49+
$STD sudo -u postgres psql -d "$DB_NAME" -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
4850
{
4951
echo "Tandoor-Credentials"
5052
echo "Tandoor Database Name: $DB_NAME"

0 commit comments

Comments
 (0)