Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-09-16ncp-templates: Fix erroneous outputs messing up config filesthecalcaholic
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-15Upgrade to PHP 8.1 when installing NC >= 24 (#1554)Tobias Knöppler
* Update nextcloud to 24.0.4 * ncp-update-nc: Upgrade php to version 8.1 when installing NC >= 24 * ncp-update-nc: Use /etc/shadow workaround for installing systemd * ncp-update-nc: Run nc-limits after php upgrade * ncp-update-nc: Rollback after failed php upgrade * ncp-update-nc: Add success message * ncp-update-nc: Prevent installation of NC >= 24 on debian 10/PHP <= 7.3 * lamp.sh: Install php8.1 from sury.org * lamp.sh: Use /etc/shadow workaround for installing systemd * Dockerfile: Install wget, ca-certificates, lsb-release and procps before installing lamp.sh * Dockerfile: Make sure, ncp-templates are available when installing lamp.sh * Migrate all scripts to use template for writing opcache.ini and get_nc_config_value for retrieving datadir * nc-nextcloud.sh Fix crash if nc-datadir has not been installed yet * opcache.ini.sh: Don't try to get tmpl values from nc-datadir in containers
2022-07-25metrics.sh: Fix set -u in calling script causing failureTobias K
2022-04-18ncp-templates/*: Use is_docker function for docker detectionTobias K
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2022-04-08metrics.sh: Install and manage ncp-metrics-exporterTobias K
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-10-28letsencrypt: sync ncp and nc cert pathsv1.42.5nachoparker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-21letsencrypt: disable also ncp web certs if OFFv1.41.12nachoparker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-14letsencrypt: take into account the possibility of the ncp-nextcloud folder ↵v1.41.1nachoparker
being used Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-14letsencrypt: favor most recent cert if there are manyv1.40.9nachoparker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-07Make templating safer and more verbose (#1343)v1.40.4Tobias Knöppler
* letsencrypt: fix active status check Signed-off-by: nachoparker <nacho@ownyourbits.com> * letsencrypt: take into account duplicate domains ending in -0001 Signed-off-by: nachoparker <nacho@ownyourbits.com> * letsencrypt: fix renewal with httpsonly enabled Signed-off-by: nachoparker <nacho@ownyourbits.com> * fix inverted template logic for docker Signed-off-by: nachoparker <nacho@ownyourbits.com> * library.sh: Move templating to separate function - Backup old file before templating (and restore on failure) - Use stderr in the template for debug/info output Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * library.sh: Fix syntax error Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * library.sh: Only fallback to default config if explicitly allowed Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * letsencrypt.sh: Set cert-name Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * nextcloud.conf.sh: Use certificate named ncp-nextcloud if available Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * letsencrypt.sh: Support multiple, comma separated domains in field "OTHER_DOMAIN" Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * nextcloud.conf.sh: Fix path resolution for certificates Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * letsencrypt.sh: Improve warning about max trusted domains reached Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * letsencrypt.sh: Fix max trusted domains check Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * letsencrypt.sh: Fix splitting of domain string by comma Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * letsencrypt.sh: Fix splitting of domain string to array Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * adjustments for docker/lxc Signed-off-by: nachoparker <nacho@ownyourbits.com> Co-authored-by: nachoparker <nacho@ownyourbits.com>
2021-10-01build: add LXC/LXD supportnachoparker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-22letsencrypt: take into account duplicate domains ending in -0001v1.39.11nachoparker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-22fix inverted template logic for dockerv1.39.10nachoparker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-22letsencrypt: fix active status checkv1.39.8nachoparker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-13upgrade to NC21.0.4v1.39.0nachoparker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-08-16nextcloud.conf.sh: Prevent apache config test output to end up in generated ↵v1.38.1Tobias K
template Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-08-10nextcloud.conf.sh: Allow any user name for metrics endpoint and fix docker buildv1.37.4Tobias K
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> nextcloud.conf.sh: Fix apps overwriting each other during templating Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> nextcloud.conf.sh: Make --default mode failsafe (don't expect apps to be installed) Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> nextcloud.conf.sh: Allow any user name for metrics endpoint Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> nextcloudpi/Dockerfile: Copy the templates directory to the container Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> lamp/Dockerfile: Copy the templates directory to the container Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> install.sh: Ensure templates are available before executing nc-nextcloud.sh Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-08-03Add ncp-app for prometheus (system) metricsv1.37.3Tobias Knöppler
* metrics.{sh,cfg}: Implement ncp-app for prometheus (system) metrics letsencrypts.sh, nc-nextcloud.sh, nextcloud.conf.sh: Introduce templating/generator concept to allow multiple ncp apps to edit the same file without conflicts library.sh: Add convenience function find_app_param Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * letsencrypt.sh: Remove commented code Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * metrics.cfg: Deactivate by default - Add title, description and remove TODO entries Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * metrics.sh: Restart apache after enabling proxy_http Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * update.sh: Update ncp-templates directory during updates Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * update.sh: Copy ncp-templates directory, not just its content Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * metrics.sh,update.sh: Disable metrics in docker for now Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * metrics.sh: Disable prometheus-node-exporter via systemctl Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * metrics.sh: Move apache mod configuration to updates Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * metrics.cfg: Remove invalid parameter type Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * metrics.sh: Create /etc/default/prometheus-node-exporter via heredoc Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * nextcloud.conf.sh: Prevent template parsing error if metrics.sh is disabled (i.e. on docker) Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * metrics.cfg: Add info directing users to my preconfigured ncp dashboard Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * Various fixes - metrics.sh: Fix is_active function always returning 1 - metrics.sh: Fix apache2 reload potentially interrupting web ui - nc-nextcloud.sh: exit if nextcloud.conf templating fails - various readability and code style improvements Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * letsencrypt.sh: Use consistent return codes in tmpl_letsencrypt_domain Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * nextcloud.conf.sh: Remove obsolete return code escape Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * nextcloud.conf.sh: Ensure that the snakeoil self-signed cert exists before enabling it Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com> * updates/1.36.4.sh: Reload apache in the background instead of restarting it blockingly Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>