Modify domain-locker-install.sh for package updates

Updated Angular and TypeScript installation in the script.
This commit is contained in:
Tobias 2025-11-10 23:10:15 +01:00 committed by GitHub
parent eb9732a4ac
commit e933672cf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,9 +15,7 @@ update_os
PG_VERSION="17" setup_postgresql PG_VERSION="17" setup_postgresql
PG_DB_NAME="domainlocker" PG_DB_USER="domainlocker" setup_postgresql_db PG_DB_NAME="domainlocker" PG_DB_USER="domainlocker" setup_postgresql_db
setup_nodejs
ANGULAR_VERSION=$(curl -s https://raw.githubusercontent.com/Lissy93/domain-locker/refs/heads/main/package-lock.json | jq -r '.packages["node_modules/@angular/build"].version')
NODE_MODULE="@angular/build@$ANGULAR_VERSION,typescript@5.5" setup_nodejs
fetch_and_deploy_gh_release "domain-locker" "Lissy93/domain-locker" fetch_and_deploy_gh_release "domain-locker" "Lissy93/domain-locker"
@ -26,6 +24,8 @@ cd /opt/domain-locker
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
corepack enable corepack enable
$STD yarn install --immutable $STD yarn install --immutable
$STD yarn add @angular/build@$(curl -s https://raw.githubusercontent.com/Lissy93/domain-locker/refs/heads/main/package-lock.json | jq -r '.packages["node_modules/@angular/build"].version')
$STD yarn add typescript@5.5
export NODE_OPTIONS="--max-old-space-size=2048" export NODE_OPTIONS="--max-old-space-size=2048"
cat <<EOF >/opt/domain-locker.env cat <<EOF >/opt/domain-locker.env
# Database connection # Database connection