mirror of
https://github.com/bashclub/zamba-lxc-toolbox.git
synced 2024-12-25 03:30:12 +01:00
Migrate open3a to debian bookworm
This commit is contained in:
parent
12fef3afa0
commit
2a91ac74a1
@ -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-11-standard"
|
LXC_TEMPLATE_VERSION="debian-12-standard"
|
||||||
|
|
||||||
# Create sharefs mountpoint
|
# Create sharefs mountpoint
|
||||||
LXC_MP="0"
|
LXC_MP="0"
|
||||||
|
@ -16,7 +16,7 @@ MYSQL_PASSWORD="$(random_password)"
|
|||||||
|
|
||||||
apt update
|
apt update
|
||||||
|
|
||||||
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq unzip sudo nginx-full mariadb-server mariadb-client php php-cli php-fpm php-mysql php-xml php-mbstring php-gd
|
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq --no-install-recommends unzip sudo nginx-full mariadb-server mariadb-client php php-cli php-fpm php-mysql php-xml php-mbstring php-gd
|
||||||
|
|
||||||
mkdir -p /etc/nginx/ssl
|
mkdir -p /etc/nginx/ssl
|
||||||
openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout /etc/nginx/ssl/open3a.key -out /etc/nginx/ssl/open3a.crt -subj "/CN=$LXC_HOSTNAME.$LXC_DOMAIN" -addext "subjectAltName=DNS:$LXC_HOSTNAME.$LXC_DOMAIN"
|
openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout /etc/nginx/ssl/open3a.key -out /etc/nginx/ssl/open3a.crt -subj "/CN=$LXC_HOSTNAME.$LXC_DOMAIN" -addext "subjectAltName=DNS:$LXC_HOSTNAME.$LXC_DOMAIN"
|
||||||
@ -45,7 +45,7 @@ server {
|
|||||||
|
|
||||||
location ~ .php$ {
|
location ~ .php$ {
|
||||||
include snippets/fastcgi-php.conf;
|
include snippets/fastcgi-php.conf;
|
||||||
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ CREATE DATABASE IF NOT EXISTS open3a;
|
|||||||
GRANT ALL PRIVILEGES ON open3a . * TO 'open3a'@'localhost';"
|
GRANT ALL PRIVILEGES ON open3a . * TO 'open3a'@'localhost';"
|
||||||
|
|
||||||
cd $webroot
|
cd $webroot
|
||||||
wget https://www.open3a.de/download/open3A%203.7.zip -O $webroot/open3a.zip
|
wget https://www.open3a.de/download/open3A%203.8.zip -O $webroot/open3a.zip
|
||||||
unzip open3a.zip
|
unzip open3a.zip
|
||||||
rm open3a.zip
|
rm open3a.zip
|
||||||
chmod 666 system/DBData/Installation.pfdb.php
|
chmod 666 system/DBData/Installation.pfdb.php
|
||||||
@ -76,8 +76,8 @@ localhost &%%%&open3a &%%%&$MYSQL_PAS
|
|||||||
*/ ?>
|
*/ ?>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl enable --now php7.4-fpm
|
systemctl enable --now php8.2-fpm
|
||||||
systemctl restart php7.4-fpm nginx
|
systemctl restart php8.2-fpm nginx
|
||||||
|
|
||||||
LXC_IP=$(ip address show dev eth0 | grep "inet " | cut -d ' ' -f6)
|
LXC_IP=$(ip address show dev eth0 | grep "inet " | cut -d ' ' -f6)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user