From 8a61625cd39f003357e887948fcae44f9198de65 Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Tue, 29 Aug 2017 00:36:38 +0200 Subject: [PATCH 1/3] Add autoconfig.php --- .config/autoconfig.php | 24 ++++++++++++++++++++++++ 11.0/apache/config/autoconfig.php | 24 ++++++++++++++++++++++++ 11.0/fpm/config/autoconfig.php | 24 ++++++++++++++++++++++++ 12.0/apache/config/autoconfig.php | 24 ++++++++++++++++++++++++ 12.0/fpm/config/autoconfig.php | 24 ++++++++++++++++++++++++ 5 files changed, 120 insertions(+) create mode 100644 .config/autoconfig.php create mode 100644 11.0/apache/config/autoconfig.php create mode 100644 11.0/fpm/config/autoconfig.php create mode 100644 12.0/apache/config/autoconfig.php create mode 100644 12.0/fpm/config/autoconfig.php diff --git a/.config/autoconfig.php b/.config/autoconfig.php new file mode 100644 index 0000000..52061ac --- /dev/null +++ b/.config/autoconfig.php @@ -0,0 +1,24 @@ + Date: Tue, 29 Aug 2017 10:58:20 +0200 Subject: [PATCH 2/3] Add NEXTCLOUD_ADMIN_USER and NEXTCLOUD_ADMIN_PASSWORD --- .config/autoconfig.php | 5 +++++ 11.0/apache/config/autoconfig.php | 5 +++++ 11.0/fpm/config/autoconfig.php | 5 +++++ 12.0/apache/config/autoconfig.php | 5 +++++ 12.0/fpm/config/autoconfig.php | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/.config/autoconfig.php b/.config/autoconfig.php index 52061ac..7ff1d3e 100644 --- a/.config/autoconfig.php +++ b/.config/autoconfig.php @@ -22,3 +22,8 @@ if (getenv('SQLITE_DATABASE')) { if (getenv('NEXTCLOUD_DATA_DIR')) { $AUTOCONFIG["directory"] = getenv('NEXTCLOUD_DATA_DIR'); } + +if (getenv('NEXTCLOUD_ADMIN_USER') && getenv('NEXTCLOUD_ADMIN_PASSWORD')) { + $AUTOCONFIG["adminlogin"] = getenv('NEXTCLOUD_ADMIN_USER'); + $AUTOCONFIG["adminpass"] = getenv('NEXTCLOUD_ADMIN_PASSWORD'); +} diff --git a/11.0/apache/config/autoconfig.php b/11.0/apache/config/autoconfig.php index 52061ac..7ff1d3e 100644 --- a/11.0/apache/config/autoconfig.php +++ b/11.0/apache/config/autoconfig.php @@ -22,3 +22,8 @@ if (getenv('SQLITE_DATABASE')) { if (getenv('NEXTCLOUD_DATA_DIR')) { $AUTOCONFIG["directory"] = getenv('NEXTCLOUD_DATA_DIR'); } + +if (getenv('NEXTCLOUD_ADMIN_USER') && getenv('NEXTCLOUD_ADMIN_PASSWORD')) { + $AUTOCONFIG["adminlogin"] = getenv('NEXTCLOUD_ADMIN_USER'); + $AUTOCONFIG["adminpass"] = getenv('NEXTCLOUD_ADMIN_PASSWORD'); +} diff --git a/11.0/fpm/config/autoconfig.php b/11.0/fpm/config/autoconfig.php index 52061ac..7ff1d3e 100644 --- a/11.0/fpm/config/autoconfig.php +++ b/11.0/fpm/config/autoconfig.php @@ -22,3 +22,8 @@ if (getenv('SQLITE_DATABASE')) { if (getenv('NEXTCLOUD_DATA_DIR')) { $AUTOCONFIG["directory"] = getenv('NEXTCLOUD_DATA_DIR'); } + +if (getenv('NEXTCLOUD_ADMIN_USER') && getenv('NEXTCLOUD_ADMIN_PASSWORD')) { + $AUTOCONFIG["adminlogin"] = getenv('NEXTCLOUD_ADMIN_USER'); + $AUTOCONFIG["adminpass"] = getenv('NEXTCLOUD_ADMIN_PASSWORD'); +} diff --git a/12.0/apache/config/autoconfig.php b/12.0/apache/config/autoconfig.php index 52061ac..7ff1d3e 100644 --- a/12.0/apache/config/autoconfig.php +++ b/12.0/apache/config/autoconfig.php @@ -22,3 +22,8 @@ if (getenv('SQLITE_DATABASE')) { if (getenv('NEXTCLOUD_DATA_DIR')) { $AUTOCONFIG["directory"] = getenv('NEXTCLOUD_DATA_DIR'); } + +if (getenv('NEXTCLOUD_ADMIN_USER') && getenv('NEXTCLOUD_ADMIN_PASSWORD')) { + $AUTOCONFIG["adminlogin"] = getenv('NEXTCLOUD_ADMIN_USER'); + $AUTOCONFIG["adminpass"] = getenv('NEXTCLOUD_ADMIN_PASSWORD'); +} diff --git a/12.0/fpm/config/autoconfig.php b/12.0/fpm/config/autoconfig.php index 52061ac..7ff1d3e 100644 --- a/12.0/fpm/config/autoconfig.php +++ b/12.0/fpm/config/autoconfig.php @@ -22,3 +22,8 @@ if (getenv('SQLITE_DATABASE')) { if (getenv('NEXTCLOUD_DATA_DIR')) { $AUTOCONFIG["directory"] = getenv('NEXTCLOUD_DATA_DIR'); } + +if (getenv('NEXTCLOUD_ADMIN_USER') && getenv('NEXTCLOUD_ADMIN_PASSWORD')) { + $AUTOCONFIG["adminlogin"] = getenv('NEXTCLOUD_ADMIN_USER'); + $AUTOCONFIG["adminpass"] = getenv('NEXTCLOUD_ADMIN_PASSWORD'); +} From d87b840646635ba5b8fb92f19f72fe9e6486251e Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Tue, 29 Aug 2017 11:54:54 +0200 Subject: [PATCH 3/3] Add data directory default --- .config/autoconfig.php | 23 ++++++++++++++--------- 11.0/apache/config/autoconfig.php | 23 ++++++++++++++--------- 11.0/fpm/config/autoconfig.php | 23 ++++++++++++++--------- 12.0/apache/config/autoconfig.php | 23 ++++++++++++++--------- 12.0/fpm/config/autoconfig.php | 23 ++++++++++++++--------- 5 files changed, 70 insertions(+), 45 deletions(-) diff --git a/.config/autoconfig.php b/.config/autoconfig.php index 7ff1d3e..b759f4d 100644 --- a/.config/autoconfig.php +++ b/.config/autoconfig.php @@ -1,29 +1,34 @@