mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-12-06 19:32:30 +03:00
Add umbrelOS 2.0 app settings support for Nextcloud
This commit is contained in:
1 parent
89566ab4b5
commit
a85e0062c9
4 files changed
+23
-12
No files matched your search
@@ -5,8 +5,9 @@ set -euo pipefail
|
||||
# Apache instance must be configured with 'LimitRequestBody 0'
|
||||
# inside the .htaccess file
|
||||
|
||||
APP_DATA_DIR="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)"
|
||||
DOT_HTACCESS_FILE="${APP_DATA_DIR}/data/nextcloud/.htaccess"
|
||||
APP_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")"
|
||||
DATA_ROOT="${APP_DATA_ROOT:-${APP_DIR}/data}"
|
||||
DOT_HTACCESS_FILE="${DATA_ROOT}/nextcloud/.htaccess"
|
||||
|
||||
echo "Waiting for file (${DOT_HTACCESS_FILE}) to exist..."
|
||||
|
||||
@@ -31,4 +32,4 @@ then
|
||||
|
||||
echo >> "${DOT_HTACCESS_FILE}"
|
||||
echo "LimitRequestBody 0" >> "${DOT_HTACCESS_FILE}"
|
||||
fi
|
||||
fi
|
||||
@@ -4,8 +4,9 @@ set -euo pipefail
|
||||
# This script checks the Nextcloud config.php file for the presence of 'nextcloud_web_1' in the trusted_domains array and adds it if it doesn't exist. Pre-29.0.4 installs on umbrelOS will not have the domain added via `NEXTCLOUD_TRUSTED_DOMAIN`.
|
||||
# This is handled in a post-update hook to make sure we don't interfere with the Nextcloud startup process and pre-start script where config.php is being written to.
|
||||
|
||||
APP_DATA_DIR="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)"
|
||||
CONFIG_PHP_FILE="${APP_DATA_DIR}/data/nextcloud/config/config.php"
|
||||
APP_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")"
|
||||
DATA_ROOT="${APP_DATA_ROOT:-${APP_DIR}/data}"
|
||||
CONFIG_PHP_FILE="${DATA_ROOT}/nextcloud/config/config.php"
|
||||
|
||||
DOMAIN_TO_ADD="nextcloud_web_1"
|
||||
|
||||
@@ -41,4 +42,4 @@ else
|
||||
sed -i "/trusted_domains/,/),/ s/),/ $new_index => '$DOMAIN_TO_ADD',\n&/" "$CONFIG_PHP_FILE"
|
||||
|
||||
echo "Domain '$DOMAIN_TO_ADD' added successfully."
|
||||
fi
|
||||
fi
|
||||
@@ -1,13 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
APP_DATA_DIR="$(readlink -f $(dirname "${BASH_SOURCE[0]}")/..)"
|
||||
UMBREL_ROOT="${APP_DATA_DIR}/../.."
|
||||
APP_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")"
|
||||
DATA_ROOT="${APP_DATA_ROOT:-${APP_DIR}/data}"
|
||||
UMBREL_ROOT="${UMBREL_ROOT:-${APP_DIR}/../..}"
|
||||
|
||||
CONFIG_PHP_FILE="${APP_DATA_DIR}/data/nextcloud/config/config.php"
|
||||
CONFIG_PHP_FILE="${DATA_ROOT}/nextcloud/config/config.php"
|
||||
|
||||
APP_COMPOSE_FILE="${APP_DATA_DIR}/docker-compose.yml"
|
||||
APP_COMPOSE_BACKUP_FILE="${APP_DATA_DIR}/docker-compose.yml.bak"
|
||||
APP_COMPOSE_FILE="${APP_DIR}/docker-compose.yml"
|
||||
APP_COMPOSE_BACKUP_FILE="${APP_DIR}/docker-compose.yml.bak"
|
||||
|
||||
# Supported list of Nextcloud major version migrations
|
||||
VERSIONS=()
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
manifestVersion: 1.1
|
||||
id: nextcloud
|
||||
storage:
|
||||
dataRoot: data
|
||||
category: files
|
||||
name: Nextcloud
|
||||
version: "34.0.4"
|
||||
version: "34.0.4-patch.1"
|
||||
tagline: Productivity platform that keeps you in control
|
||||
description: >-
|
||||
Nextcloud puts your data at your fingertips, under your control.
|
||||
@@ -25,6 +27,12 @@ description: >-
|
||||
|
||||
Note: After logging in to Nextcloud please change the password to something secure before sharing the address with anyone.
|
||||
releaseNotes: >-
|
||||
This update adds support for new storage management and configuration options being introduced with umbrelOS 2.0.
|
||||
|
||||
|
||||
Previous Nextcloud 34.0.4 release notes:
|
||||
|
||||
|
||||
Nextcloud 34.0.4 is a maintenance update for Nextcloud 34. If you're updating from a pre-34 version, the upgrade may take a few minutes while Nextcloud runs its update steps; leave the app running until it comes back online.
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user