mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
* Update nextcloud to 24.0.4 * ncp-update-nc: Upgrade php to version 8.1 when installing NC >= 24 * ncp-update-nc: Use /etc/shadow workaround for installing systemd * ncp-update-nc: Run nc-limits after php upgrade * ncp-update-nc: Rollback after failed php upgrade * ncp-update-nc: Add success message * ncp-update-nc: Prevent installation of NC >= 24 on debian 10/PHP <= 7.3 * lamp.sh: Install php8.1 from sury.org * lamp.sh: Use /etc/shadow workaround for installing systemd * Dockerfile: Install wget, ca-certificates, lsb-release and procps before installing lamp.sh * Dockerfile: Make sure, ncp-templates are available when installing lamp.sh * Migrate all scripts to use template for writing opcache.ini and get_nc_config_value for retrieving datadir * nc-nextcloud.sh Fix crash if nc-datadir has not been installed yet * opcache.ini.sh: Don't try to get tmpl values from nc-datadir in containers
39 lines
847 B
Bash
39 lines
847 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
source /usr/local/etc/library.sh
|
|
|
|
if [[ "$1" == "--defaults" ]]
|
|
then
|
|
echo -e "INFO: Restoring template to default settings"
|
|
INNODB_BUFFER_POOL_SIZE=256M
|
|
else
|
|
INNODB_BUFFER_POOL_SIZE="$(source "${BINDIR}/CONFIG/nc-limits.sh"; tmpl_innodb_buffer_pool_size)"
|
|
fi
|
|
|
|
cat > /etc/mysql/mariadb.conf.d/91-ncp.cnf <<EOF
|
|
[mysqld]
|
|
transaction_isolation = READ-COMMITTED
|
|
innodb_large_prefix=true
|
|
innodb_file_per_table=1
|
|
innodb_file_format=barracuda
|
|
|
|
[server]
|
|
# innodb settings
|
|
skip-name-resolve
|
|
innodb_buffer_pool_size = ${INNODB_BUFFER_POOL_SIZE}
|
|
innodb_buffer_pool_instances = 1
|
|
innodb_flush_log_at_trx_commit = 2
|
|
innodb_log_buffer_size = 32M
|
|
innodb_max_dirty_pages_pct = 90
|
|
innodb_log_file_size = 32M
|
|
|
|
# disable query cache
|
|
query_cache_type = 0
|
|
query_cache_size = 0
|
|
|
|
# other
|
|
tmp_table_size= 64M
|
|
max_heap_table_size= 64M
|
|
EOF
|