1160 Commits

Author SHA1 Message Date
nachoparker
26edf1f7b0 build: add LXC/LXD support
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-30 22:48:19 -06:00
nachoparker
f1c90f543d nc-httpsonly: always use overwriteprotocol https in all cases
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.18
2021-09-30 12:29:37 -06:00
nachoparker
c037c11dfc add bash completion to ncc
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.17
2021-09-29 20:07:56 -06:00
nachoparker
2be666b1f5 nc-https: proto logic was inverted fix
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.16
2021-09-27 18:32:02 -06:00
nachoparker
b067844550 add get_ip function
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.15
2021-09-27 18:27:44 -06:00
nachoparker
6ad96eddd3 nc-https:only fix infinite redirects behind proxy
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.14
2021-09-25 12:58:03 -06:00
nachoparker
eef7b096bf ncp-web: make letsencrypt detection more robust
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.13
2021-09-23 10:30:13 -06:00
nachoparker
814569be56 fix junk in overwrite.cli.url because of Redis not being yet ready
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.12
2021-09-22 09:38:28 -06:00
nachoparker
4039da90a9 letsencrypt: take into account duplicate domains ending in -0001
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.11
2021-09-22 09:18:45 -06:00
nachoparker
2b51476630 fix inverted template logic for docker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.10
2021-09-22 00:48:57 -06:00
nachoparker
a4851dcd31 letsencrypt: fix renewal with httpsonly enabled
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.9
2021-09-22 00:48:57 -06:00
nachoparker
1046a2413b letsencrypt: fix active status check
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.8
2021-09-22 00:48:56 -06:00
nachoparker
98976c91b3 dont update config if Redis is not yet ready
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.7
2021-09-22 00:48:06 -06:00
nachoparker
534b9b505d ncp-update-nc: pre-check that NC is currently working fine
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.6
2021-09-20 09:59:35 -06:00
nachoparker
cb184d2bde ncp-update-nc: dont keep notifying when there is nothing to upgrade
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.5
2021-09-20 09:59:35 -06:00
nachoparker
311cd2b769 improve btrfs/ext checks
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.4
2021-09-20 09:59:35 -06:00
nachoparker
f3e3b01ab5 letsencrypt: improve active status check
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.3
2021-09-20 09:59:35 -06:00
nachoparker
110311fef6 nextcloud-domain: make sure redis is running before it starts
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.2
2021-09-20 09:59:32 -06:00
nachoparker
6290c1f472 nc-static-IP: take into account httpsonly
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.1
2021-09-13 14:07:06 -06:00
nachoparker
c10d4bd8fb upgrade to NC21.0.4
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.39.0
2021-09-12 16:55:46 -06:00
nachoparker
3bf746bad0 raspi: allow oldstable origins
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.38.6
2021-08-25 14:59:04 -06:00
nachoparker
e23b252f92 nc-init: drop News for 32-bit :(
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.38.5
2021-08-17 09:57:12 -06:00
nachoparker
bb720be490 build: make sure we clean /.ncp-image in old builds
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.38.4
2021-08-17 07:49:19 -06:00
nachoparker
9642cf91d4 unattended-upgrades: update raspbian origins
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.38.3
2021-08-17 07:47:17 -06:00
nachoparker
956eea4624 nc-restore: try to detect old datadir in dataless restoration
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.38.2
2021-08-16 20:41:14 -06:00
Tobias K
4f29d94a02
nextcloud.conf.sh: Prevent apache config test output to end up in generated template
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
v1.38.1
2021-08-16 21:26:08 +02:00
nachoparker
6e2dca5d52 upgrade to NC20.0.12
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.38.0
2021-08-09 17:37:34 -06:00
nachoparker
b8c14093ad letsencrypt: ability to disable it and roll back to self-signed certificates
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.37.9
2021-08-09 17:25:55 -06:00
nachoparker
5a05b8990f nextcloud: remove beta option
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.37.8
2021-08-09 17:16:38 -06:00
rababerladuseladim
6aefb5de1c remove unused USER variable from ncp apps nc-notify-updates and nc-update-nc-apps-auto (#1307)
* remove unused USER variable

Signed-off-by: Henning Schiebenhoefer <henning.schiebenhoefer@posteo.de>

* remove unused USER variable

Signed-off-by: Henning Schiebenhoefer <henning.schiebenhoefer@posteo.de>
2021-08-09 17:16:38 -06:00
schoetju
1d696f0678 nc-backup-auto.sh: don't smash ncp.log
append to log instead of clearing it
see https://github.com/nextcloud/nextcloudpi/issues/1232#issuecomment-891524543
v1.37.7
2021-08-09 17:16:38 -06:00
Tobias K
fa1c0c7f81 nextcloud_tests.py: Fix detection of non-critical warnings
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-08-09 17:16:38 -06:00
Tobias K
f93c183ecc nextcloud_tests.py: Ignore warning about unset default phone region
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-08-09 17:16:38 -06:00
Tobias K
b8402459b1 metrics.sh: Fix inverted is_active result
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
v1.37.6
2021-08-09 17:16:38 -06:00
Tobias K
fb102d233c metrics.sh: Fix USER variable being ignored
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
v1.37.5
2021-08-09 17:16:38 -06:00
Tobias K
e49203249b nextcloud.conf.sh: Allow any user name for metrics endpoint and fix docker build
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>
v1.37.4
2021-08-09 17:16:35 -06:00
Tobias Knöppler
b8a990e264
Add ncp-app for prometheus (system) metrics
* 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>
v1.37.3
2021-08-02 15:12:56 -06:00
nachoparker
4300e30d78 unattended-upgrades: update raspbian origins
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.37.2
2021-07-31 20:38:17 -06:00
Tobias K
7660530a4e nextcloud_tests.py: Don't fail if the only warning is the missing imagick php module
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-07-28 22:42:19 -06:00
Tobias K
1cb8580cd6 ncp-update: Fix failure to determine latest version in some cases
ncp.sh: Make branch configurable

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-07-28 22:42:19 -06:00
nachoparker
b1ffd709da ncp-app: bump to NC21
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.37.1
2021-07-26 21:02:57 -06:00
nachoparker
b837403a7c build: fix docker build /etc/hosts
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-07-26 21:02:50 -06:00
nachoparker
665ed28ae6 build: trap and curl installer fixes
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-07-25 14:59:07 -06:00
nachoparker
effdd6cdb3 upgrade to NC20.0.11
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.37.0
2021-07-25 07:23:48 -06:00
Tobias K
33067ddfde
activation_tests, nextcloud_tests: Make ports configurable 2021-07-07 15:41:30 +02:00
nachoparker
7b809d114b ncp-web: fix port checking for IPv6 dual stack
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.36.3
2021-06-02 13:57:42 -06:00
nachoparker
1a8ac71543 ncp-web: fix port checking
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.36.2
2021-05-12 21:49:42 -06:00
nachoparker
bd0c23d9f9 build: bail out upon any error in docker builds
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-05-12 21:49:42 -06:00
nachoparker
67aa5994d6 lamp: allow only TLSv12 and TLSv13
Signed-off-by: nachoparker <nacho@ownyourbits.com>
v1.36.1
2021-05-12 21:49:42 -06:00
Huizerd
7aef967f09 Namecheap dynamic DNS client
Signed-off-by: Huizerd <15855769+Huizerd@users.noreply.github.com>
v1.36.0
2021-05-12 21:49:42 -06:00