mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2026-04-18 18:06:06 +00:00
fix nextcloud
This commit is contained in:
@@ -80,14 +80,20 @@ inst_nginx() {
|
||||
inst_php() {
|
||||
PHP_MODULES=${1}
|
||||
PHP_VERSION=${2:-8.5}
|
||||
IFS=',' read -ra MODULE_ARRAY <<< "$PHP_MODULES"
|
||||
PKGS=()
|
||||
for PHP_MODULE in "${MODULE_ARRAY[@]}"; do
|
||||
PKGS+=( "php${PHP_VERSION}-${PHP_MODULE}" )
|
||||
done
|
||||
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${PHP_VERSION}-${PHP_MODULES}
|
||||
apt update && DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq --no-install-recommends php-common "${PKGS[@]}"
|
||||
}
|
||||
|
||||
#### 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}
|
||||
}
|
||||
@@ -98,3 +104,9 @@ inst_crowdsec() {
|
||||
apt update && DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq --no-install-recommends crowdsec
|
||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq --no-install-recommends crowdsec-firewall-bouncer-nftables
|
||||
}
|
||||
|
||||
#### Set repo and install 45drives (cockpit) ####
|
||||
inst_45drives() {
|
||||
apt_repo "45drives" "https://repo.45drives.com/key/gpg.asc" "https://repo.45drives.com/enterprise/debian" "bookworm" "main"
|
||||
apt update
|
||||
}
|
||||
Reference in New Issue
Block a user