Debian 13 for nextcloud and semaphore

This commit is contained in:
Thorsten Spille
2026-01-17 17:15:54 +00:00
parent 2d55a1b222
commit 1c6ec8f73c
5 changed files with 12 additions and 11 deletions

View File

@@ -8,7 +8,7 @@
# This file contains the project constants on service level # This file contains the project constants on service level
# Debian Version, which will be installed # Debian Version, which will be installed
LXC_TEMPLATE_VERSION="debian-12-standard" LXC_TEMPLATE_VERSION="debian-13-standard"
# Create sharefs mountpoint # Create sharefs mountpoint
LXC_MP=0 LXC_MP=0

View File

@@ -9,11 +9,8 @@ source /root/functions.sh
source /root/zamba.conf source /root/zamba.conf
source /root/constants-service.conf source /root/constants-service.conf
wget -q -O - https://nginx.org/keys/nginx_signing.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/nginx.key >/dev/null inst_nginx
echo "deb [signed-by=/etc/apt/trusted.gpg.d/nginx.key] http://nginx.org/packages/debian $(lsb_release -cs) nginx" | tee /etc/apt/sources.list.d/nginx.list inst_postgresql
wget -q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/postgresql.key >/dev/null
echo "deb [signed-by=/etc/apt/trusted.gpg.d/postgresql.key] http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
apt update apt update

View File

@@ -76,14 +76,18 @@ inst_nginx() {
#### Set repo and install PHP #### #### Set repo and install PHP ####
inst_php() { inst_php() {
PHP_MODULES=${1}
PHP_VERSION=${2:-8.5}
apt_repo "php" "https://packages.sury.org/php/apt.gpg" "https://packages.sury.org/php/" "$(lsb_release -sc)" "main" apt_repo "php" "https://packages.sury.org/php/apt.gpg" "https://packages.sury.org/php/" "$(lsb_release -sc)" "main"
apt update && DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq --no-install-recommends php-common php$NEXTCLOUD_PHP_VERSION-{fpm,gd,curl,pgsql,xml,zip,intl,mbstring,bz2,ldap,apcu,bcmath,gmp,imagick,igbinary,mysql,redis,smbclient,sqlite3,cli,common,opcache,readline} apt update && DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq --no-install-recommends php-common php${PHP_VERSION}-${PHP_MODULES}
} }
#### Set repo and install Postgresql #### #### Set repo and install Postgresql ####
# First paramater is postgres version, default ist curren version postgres 18
inst_postgresql() { inst_postgresql() {
POSTGRES_VERSION=${1:-18}
apt_repo "postgresql" "https://www.postgresql.org/media/keys/ACCC4CF8.asc" "http://apt.postgresql.org/pub/repos/apt" "$(lsb_release -cs)-pgdg" "main" apt_repo "postgresql" "https://www.postgresql.org/media/keys/ACCC4CF8.asc" "http://apt.postgresql.org/pub/repos/apt" "$(lsb_release -cs)-pgdg" "main"
apt update && DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq --no-install-recommends postgresql-$POSTGRES_VERSION apt update && DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq --no-install-recommends postgresql-${POSTGRES_VERSION}
} }
#### Set repo and install Crowdsec #### #### Set repo and install Crowdsec ####

View File

@@ -8,7 +8,7 @@
# This file contains the project constants on service level # This file contains the project constants on service level
# Debian Version, which will be installed # Debian Version, which will be installed
LXC_TEMPLATE_VERSION="debian-12-standard" LXC_TEMPLATE_VERSION="debian-13-standard"
# Create sharefs mountpoint # Create sharefs mountpoint
LXC_MP=1 LXC_MP=1
@@ -33,7 +33,7 @@ NEXTCLOUD_VERSION="latest"
NEXTCLOUD_PHP_VERSION="8.3" NEXTCLOUD_PHP_VERSION="8.3"
# Defines the postgresql version to install # Defines the postgresql version to install
POSTGRES_VERSION=16 POSTGRES_VERSION=18
# Defines the IP from the SQL server # Defines the IP from the SQL server
NEXTCLOUD_DB_IP="127.0.0.1" NEXTCLOUD_DB_IP="127.0.0.1"

View File

@@ -549,7 +549,7 @@ echo "=> Modifying Nginx config for Nextcloud ..."
mod_nginx mod_nginx
echo "=> Installing PHP $NEXTCLOUD_PHP_VERSION ..." echo "=> Installing PHP $NEXTCLOUD_PHP_VERSION ..."
inst_php inst_php {fpm,gd,curl,pgsql,xml,zip,intl,mbstring,bz2,ldap,apcu,bcmath,gmp,imagick,igbinary,mysql,redis,smbclient,sqlite3,cli,common,opcache,readline} $NEXTCLOUD_PHP_VERSION
echo "=> Modifying PHP config for Nextcloud ..." echo "=> Modifying PHP config for Nextcloud ..."
mod_php mod_php