mirror of
https://github.com/nodemailer/wildduck.git
synced 2026-02-19 03:53:09 +08:00
* Switches to latest tagged release for repo checkouts Replaces hardcoded commit hashes with a function that checks out the latest tagged release for each repository. Improves deployment flow by automatically tracking stable upstream releases. * Enforces supported architectures in install scripts Adds explicit architecture detection and validation to setup scripts, restricting them to amd64, arm64, and armhf. Updates repository configuration to use detected architecture for package sources, improving compatibility and preventing installation on unsupported systems. * Updates npm install flags for improved dependency handling Replaces deprecated and less explicit npm install flags with --omit=dev and --omit=optional to better control installed dependencies and align with modern npm practices. Reduces potential for installing unnecessary packages and improves script reliability. * Reformats SSL certificate issuance command by placing each argument on a separate line, enhancing readability and simplifying future modifications. * Updates Node.js and MongoDB to latest major versions Ensures compatibility and access to new features by moving to Node.js 22 and MongoDB 8.0. Prepares environment for current ecosystem dependencies and future-proofing. * add ending line * fix typos, improve consistency, fix npm install script, make it more modern * improve consistency --------- Co-authored-by: Joosep Jõeleht <joosep@zone.ee> Co-authored-by: Nikolai Ovtsinnikov <nikolai@zone.ee>
19 lines
525 B
Bash
Executable file
19 lines
525 B
Bash
Executable file
#! /bin/bash
|
|
|
|
OURNAME=01_install_commits.sh
|
|
|
|
apt-get update
|
|
apt-get install -y lsb-release ca-certificates curl gnupg
|
|
|
|
NODE_MAJOR="22"
|
|
MONGODB="8.0"
|
|
CODENAME=`lsb_release -c -s`
|
|
|
|
HARAKA_VERSION="3.0.5"
|
|
|
|
ARCHITECTURE=$(dpkg --print-architecture)
|
|
if [ "$ARCHITECTURE" != "amd64" ] && [ "$ARCHITECTURE" != "arm64" ] && [ "$ARCHITECTURE" != "armhf" ]; then
|
|
handle_error "1" "Unsupported architecture: $ARCHITECTURE. Only amd64, arm64, and armhf are supported."
|
|
fi
|
|
|
|
echo -e "\n-- Executing ${ORANGE}${OURNAME}${NC} subscript --"
|