From e39c3abd5b4c6268796bf6d7cc91c22c8a783d86 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Fri, 22 Feb 2019 13:45:15 -0700 Subject: lamp: adjust mariadb parameters --- changelog.md | 8 +++++--- lamp.sh | 36 +++++++++++++++++++++++++++++++----- update.sh | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 8 deletions(-) diff --git a/changelog.md b/changelog.md index bdc674ca..51dfadf8 100644 --- a/changelog.md +++ b/changelog.md @@ -1,7 +1,9 @@ -[v1.7.0](https://github.com/nextcloud/nextcloudpi/commit/b0a83b0) (2019-02-17) add nc-restore-snapshot +[v1.7.1](https://github.com/nextcloud/nextcloudpi/commit/a077130) (2019-02-22) lamp: adjust mariadb parameters -[v1.6.7](https://github.com/nextcloud/nextcloudpi/commit/41a48c9) (2019-02-17) nc-backup-auto: notify failures +[v1.7.0](https://github.com/nextcloud/nextcloudpi/commit/5e1ea77) (2019-02-17) add nc-restore-snapshot + +[v1.6.7 ](https://github.com/nextcloud/nextcloudpi/commit/41a48c9) (2019-02-17) nc-backup-auto: notify failures [v1.6.6 ](https://github.com/nextcloud/nextcloudpi/commit/743cb24) (2019-02-15) nc-automount: fix NFS delay @@ -9,7 +11,7 @@ [v1.6.4 ](https://github.com/nextcloud/nextcloudpi/commit/4e04339) (2019-02-14) nc-nextcloud: update description -[v1.6.3](https://github.com/nextcloud/nextcloudpi/commit/af5e35d) (2019-02-13) ncp-update-nc: BTRFS basedir not supported +[v1.6.3 ](https://github.com/nextcloud/nextcloudpi/commit/af5e35d) (2019-02-13) ncp-update-nc: BTRFS basedir not supported [v1.6.2 ](https://github.com/nextcloud/nextcloudpi/commit/b070387) (2019-02-13) nc-datadir: lift mountpoint restriction diff --git a/lamp.sh b/lamp.sh index 7ec49c8e..239038b1 100644 --- a/lamp.sh +++ b/lamp.sh @@ -126,11 +126,37 @@ EOF $APTINSTALL ssl-cert # self signed snakeoil certs - # configure MariaDB ( UTF8 4 byte support ) - cp /etc/mysql/mariadb.conf.d/50-server.cnf /etc/mysql/mariadb.conf.d/90-ncp.cnf - sed -i '/\[mysqld\]/ainnodb_large_prefix=true' /etc/mysql/mariadb.conf.d/90-ncp.cnf - sed -i '/\[mysqld\]/ainnodb_file_per_table=1' /etc/mysql/mariadb.conf.d/90-ncp.cnf - sed -i '/\[mysqld\]/ainnodb_file_format=barracuda' /etc/mysql/mariadb.conf.d/90-ncp.cnf + # configure MariaDB (UTF8 4 byte support) + cat > /etc/mysql/mariadb.conf.d/90-ncp.cnf < /etc/mysql/mariadb.conf.d/91-ncp.cnf </dev/null; then diff --git a/update.sh b/update.sh index 90546278..90ae4745 100755 --- a/update.sh +++ b/update.sh @@ -309,6 +309,38 @@ EOF bash -c "sleep 2 && service apache2 reload" &>/dev/null & fi + # configure MariaDB (UTF8 4 byte support) + [[ -f /etc/mysql/mariadb.conf.d/91-ncp.cnf ]] || { + cat > /etc/mysql/mariadb.conf.d/91-ncp.cnf < https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968 # Bug #416 reappeared after we moved to php7.2 and debian buster packages. (keep last) [[ "$( ls -l /etc/php/7.2/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.2/fpm/conf.d/*-opcache.ini | tail -1 )" -- cgit v1.2.3