mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #155510 from yayayayaka/fix-nextcloud-test
nixos/nextcloud: Fix nixos test on master
This commit is contained in:
commit
e34a112c18
1 changed files with 8 additions and 7 deletions
|
@ -40,15 +40,16 @@ in {
|
||||||
|
|
||||||
services.mysql = {
|
services.mysql = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bind = "127.0.0.1";
|
settings.mysqld = {
|
||||||
package = pkgs.mariadb;
|
bind-address = "127.0.0.1";
|
||||||
|
|
||||||
# FIXME(@Ma27) Nextcloud isn't compatible with mariadb 10.6,
|
# FIXME(@Ma27) Nextcloud isn't compatible with mariadb 10.6,
|
||||||
# this is a workaround.
|
# this is a workaround.
|
||||||
# See https://help.nextcloud.com/t/update-to-next-cloud-21-0-2-has-get-an-error/117028/22
|
# See https://help.nextcloud.com/t/update-to-next-cloud-21-0-2-has-get-an-error/117028/22
|
||||||
extraOptions = ''
|
innodb_read_only_compressed = 0;
|
||||||
innodb_read_only_compressed=0
|
};
|
||||||
'';
|
package = pkgs.mariadb;
|
||||||
|
|
||||||
initialScript = pkgs.writeText "mysql-init" ''
|
initialScript = pkgs.writeText "mysql-init" ''
|
||||||
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'hunter2';
|
CREATE USER 'nextcloud'@'localhost' IDENTIFIED BY 'hunter2';
|
||||||
CREATE DATABASE IF NOT EXISTS nextcloud;
|
CREATE DATABASE IF NOT EXISTS nextcloud;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue