diff options
author | GitHub Workflow <workflow@github.com> | 2021-01-14 16:51:39 +0000 |
---|---|---|
committer | GitHub Workflow <workflow@github.com> | 2021-01-14 16:51:39 +0000 |
commit | aa48d5145f8b9d2774bf747077e1f00fb64b47e4 (patch) | |
tree | b81d708d6bee3112e1d7e3cf8c684a1a37b80bcb /20.0/apache/config/autoconfig.php | |
parent | fa4a8a857bd111e886b0b2872f9e55a83cc09c8e (diff) |
Runs update.sh
Diffstat (limited to '20.0/apache/config/autoconfig.php')
-rw-r--r-- | 20.0/apache/config/autoconfig.php | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/20.0/apache/config/autoconfig.php b/20.0/apache/config/autoconfig.php index 5bb85d42..f01f18d6 100644 --- a/20.0/apache/config/autoconfig.php +++ b/20.0/apache/config/autoconfig.php @@ -3,25 +3,25 @@ $autoconfig_enabled = false; if (getenv('SQLITE_DATABASE')) { - $AUTOCONFIG["dbtype"] = "sqlite"; - $AUTOCONFIG["dbname"] = getenv('SQLITE_DATABASE'); + $AUTOCONFIG['dbtype'] = 'sqlite'; + $AUTOCONFIG['dbname'] = getenv('SQLITE_DATABASE'); $autoconfig_enabled = true; } elseif (getenv('MYSQL_DATABASE') && getenv('MYSQL_USER') && getenv('MYSQL_PASSWORD') && getenv('MYSQL_HOST')) { - $AUTOCONFIG["dbtype"] = "mysql"; - $AUTOCONFIG["dbname"] = getenv('MYSQL_DATABASE'); - $AUTOCONFIG["dbuser"] = getenv('MYSQL_USER'); - $AUTOCONFIG["dbpass"] = getenv('MYSQL_PASSWORD'); - $AUTOCONFIG["dbhost"] = getenv('MYSQL_HOST'); + $AUTOCONFIG['dbtype'] = 'mysql'; + $AUTOCONFIG['dbname'] = getenv('MYSQL_DATABASE'); + $AUTOCONFIG['dbuser'] = getenv('MYSQL_USER'); + $AUTOCONFIG['dbpass'] = getenv('MYSQL_PASSWORD'); + $AUTOCONFIG['dbhost'] = getenv('MYSQL_HOST'); $autoconfig_enabled = true; } elseif (getenv('POSTGRES_DB') && getenv('POSTGRES_USER') && getenv('POSTGRES_PASSWORD') && getenv('POSTGRES_HOST')) { - $AUTOCONFIG["dbtype"] = "pgsql"; - $AUTOCONFIG["dbname"] = getenv('POSTGRES_DB'); - $AUTOCONFIG["dbuser"] = getenv('POSTGRES_USER'); - $AUTOCONFIG["dbpass"] = getenv('POSTGRES_PASSWORD'); - $AUTOCONFIG["dbhost"] = getenv('POSTGRES_HOST'); + $AUTOCONFIG['dbtype'] = 'pgsql'; + $AUTOCONFIG['dbname'] = getenv('POSTGRES_DB'); + $AUTOCONFIG['dbuser'] = getenv('POSTGRES_USER'); + $AUTOCONFIG['dbpass'] = getenv('POSTGRES_PASSWORD'); + $AUTOCONFIG['dbhost'] = getenv('POSTGRES_HOST'); $autoconfig_enabled = true; } if ($autoconfig_enabled) { - $AUTOCONFIG["directory"] = getenv('NEXTCLOUD_DATA_DIR') ?: "/var/www/html/data"; + $AUTOCONFIG['directory'] = getenv('NEXTCLOUD_DATA_DIR') ?: '/var/www/html/data'; } |