mirror of
https://github.com/bashclub/zamba-lxc-toolbox
synced 2026-02-18 23:46:18 +00:00
Debian 13 for nextcloud and semaphore
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
# This file contains the project constants on service level
|
||||
|
||||
# Debian Version, which will be installed
|
||||
LXC_TEMPLATE_VERSION="debian-12-standard"
|
||||
LXC_TEMPLATE_VERSION="debian-13-standard"
|
||||
|
||||
# Create sharefs mountpoint
|
||||
LXC_MP=0
|
||||
|
||||
@@ -9,11 +9,8 @@ source /root/functions.sh
|
||||
source /root/zamba.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
|
||||
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
|
||||
|
||||
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
|
||||
inst_nginx
|
||||
inst_postgresql
|
||||
|
||||
apt update
|
||||
|
||||
|
||||
@@ -76,14 +76,18 @@ inst_nginx() {
|
||||
|
||||
#### Set repo and install 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 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 ####
|
||||
# First paramater is postgres version, default ist curren version postgres 18
|
||||
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 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 ####
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# This file contains the project constants on service level
|
||||
|
||||
# Debian Version, which will be installed
|
||||
LXC_TEMPLATE_VERSION="debian-12-standard"
|
||||
LXC_TEMPLATE_VERSION="debian-13-standard"
|
||||
|
||||
# Create sharefs mountpoint
|
||||
LXC_MP=1
|
||||
@@ -33,7 +33,7 @@ NEXTCLOUD_VERSION="latest"
|
||||
NEXTCLOUD_PHP_VERSION="8.3"
|
||||
|
||||
# Defines the postgresql version to install
|
||||
POSTGRES_VERSION=16
|
||||
POSTGRES_VERSION=18
|
||||
|
||||
# Defines the IP from the SQL server
|
||||
NEXTCLOUD_DB_IP="127.0.0.1"
|
||||
|
||||
@@ -549,7 +549,7 @@ echo "=> Modifying Nginx config for Nextcloud ..."
|
||||
mod_nginx
|
||||
|
||||
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 ..."
|
||||
mod_php
|
||||
|
||||
|
||||
Reference in New Issue
Block a user