82 Commits

Author SHA1 Message Date
Tobias Knöppler
663b65e45c
1.51.2.sh: Update mysql config after update
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-04-16 00:04:44 +02:00
Martin
13aa4737fb
1.51.1.sh: Fix data directory path (#1759)
Signed-off-by: Martin <mayermart@users.noreply.github.com>
2023-04-11 01:05:55 +02:00
Tobias K
81d4d68df7 1.51.1.sh: Fix invalid data directory path
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2023-04-08 14:11:19 +02:00
Tobias Knöppler
fd60a22b17
1.51.1.sh: Fix retrieval of theming app instance ID
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-04-05 20:39:47 +02:00
Tobias Knöppler
39549d2e6e
Fix update script with wrong version
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-04-05 20:34:18 +02:00
Tobias Knöppler
f10c48d1c0
nc-init.sh: Fix ncp theming
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-03-28 15:39:16 +02:00
Tobias Knöppler
33af0ed554
1.51.0.sh: Make sure, Changes to opcache.ini are in effect
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 01:21:08 +01:00
Tobias Knöppler
362c8288f5
Remove unnecessary clear_opcache calls, as opcache is now disabled for cli
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 01:21:08 +01:00
Tobias Knöppler
87e3fc883e
opcache.ini.sh: include potential fix for opcache jit segfaults
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 01:21:04 +01:00
Tobias Knöppler
f09ccf26ce
library.sh: Have notify_admin notify *all* admins, not just the first
1.51.0.sh: clear opcache after removing php-json, notify users if php8.2 packages need to be removed

Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 01:21:03 +01:00
Tobias Knöppler
3298b95aa9
ncp-update-nc, 1.51.0.sh: Remove deprecated package php-json
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 01:21:01 +01:00
Tobias Knöppler
13129b694e
nc-snapshot-auto.sh: Add missing import of library.sh in /etc/cron.hourly/btrfs-snp (#1689)
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-08 21:16:38 +01:00
thecalcaholic
d1daa9b7fa
Revert d784a6a932977fc2b2a04eceeaa1803c8e159dea
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-28 12:20:38 +02:00
thecalcaholic
d784a6a932
v1.50.1.sh: Fix missing PHP 8 configuration on docker
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-28 10:55:15 +02:00
thecalcaholic
b990f91bb6
1.50.1.sh: clear opcache once more, as that process was broken for some users in v1.50.0
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-27 20:20:48 +02:00
thecalcaholic
2589f49377
notify_push: Automatically restart notify_push on error
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-27 20:20:48 +02:00
thecalcaholic
780d02a6bd
CI/CD: Fix armbian builds 2022-09-27 20:17:50 +02:00
thecalcaholic
e27671249c
1.50.0.sh: Fix update crashing when run from web ui
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-26 14:28:50 +02:00
thecalcaholic
b00dff6ae6
1.50.0.sh: stop and start php-fpm service instead of mere restart
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-22 21:52:18 +02:00
thecalcaholic
998c89e44a
1.50.0.sh: Ensure that system ncp.cfg is being used
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-22 21:17:03 +02:00
thecalcaholic
8c5531340d
Ensure that php opcache is cleared after PHP upgrade
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-22 15:23:45 +02:00
thecalcaholic
390cdae51d
updates/1.50.0.sh: Reinstall opcache.ini to apply workaround.
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-22 12:33:53 +02:00
Tobias Knöppler
b675d61e61
Upgrade to PHP 8.1 when installing NC >= 24 (#1554)
* 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-09-15 17:31:15 +02:00
thecalcaholic
c619589a22
nc-init.sh, ncp-update-nc, library.sh: Fix invalid architecture name in notify_push binary path
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-08-26 12:29:21 +02:00
DesktopECHO
c41d38aa2a
Use dpkg for architecture detection (#1481) 2022-08-25 13:13:02 +02:00
thecalcaholic
c3f4e766be 1.47.0.sh: Fix ncp-update if prometheus-node-exporter was not installed before 2022-07-28 09:37:47 +02:00
thecalcaholic
60692fe9bc Fix notify_push sometimes using wrong URL 2022-07-20 00:43:53 +02:00
Tobias K
9563367363
library.sh: Prevent systemd pager from blocking script execution
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2022-04-13 11:01:40 +02:00
Tobias K
d42a0c8cd5
metrics.sh: Reinstall metrics when upgrading
- Upgrade ncp-metrics-exporter to v1.1.0
- Install prometheus-node-exporter-collectors when dist-upgrading from buster

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2022-04-08 15:07:34 +02:00
SoongJr
dd8fc3dd7d
fix update from pre-1.46 to post-1.46 not working in docker (#1406)
Signed-off-by: SoongJr <SoongJr@googlemail.com>
2022-01-10 14:25:15 -07:00
Tobias Knöppler
26a7778d06 notify_push: fix service not restarting on binary update (#1398)
* notify_push: fix service not restarting on binary update

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* notify_push: fix cronjob path and add executable flag

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>

* notify_push: Don't restart notify_push.service when setting up the update watcher

Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2021-12-09 15:44:44 -07:00
nachoparker
4717eb334f tweak ncc command
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-11-18 10:07:04 -07:00
nachoparker
2aa95c657b ncp-previewgenerator: update to NC22
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-11-17 13:33:14 -07:00
nachoparker
6aba9b92a6 nc-restore: improve restoring data from SD to docker
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-11-05 13:38:00 -06:00
nachoparker
36c1f465fc letsencrypt: disable also ncp web certs if OFF
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-21 12:47:38 -06:00
nachoparker
0a866caca4 save and restore maintenance mode status in ncp-apps
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-18 08:01:48 -06:00
nachoparker
b41fad0b94 ncp-web: add NCP logs section
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-14 13:47:55 -06:00
nachoparker
9bddfad805 fix HPB with dynamic IP
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-14 10:24:16 -06:00
nachoparker
8a6c1c08a2 ncp-check-nc-version: dont notify the same version more than once
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-07 13:28:50 -06:00
nachoparker
a0728d7487 nc-notify-updates: notify of new supported NC versions
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-04 15:13:02 -06:00
nachoparker
f1c90f543d nc-httpsonly: always use overwriteprotocol https in all cases
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-30 12:29:37 -06:00
nachoparker
c037c11dfc add bash completion to ncc
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-29 20:07:56 -06:00
nachoparker
6ad96eddd3 nc-https:only fix infinite redirects behind proxy
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-25 12:58:03 -06:00
nachoparker
a4851dcd31 letsencrypt: fix renewal with httpsonly enabled
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-22 00:48:57 -06:00
nachoparker
311cd2b769 improve btrfs/ext checks
Signed-off-by: nachoparker <nacho@ownyourbits.com>
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>
2021-09-20 09:59:32 -06:00
nachoparker
c10d4bd8fb upgrade to NC21.0.4
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-12 16:55:46 -06:00
nachoparker
bb720be490 build: make sure we clean /.ncp-image in old builds
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-08-17 07:49:19 -06:00
nachoparker
956eea4624 nc-restore: try to detect old datadir in dataless restoration
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-08-16 20:41:14 -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>
2021-08-02 15:12:56 -06:00