Tobias K
323a202785
ncp-update-nc, nc-autoupdate-nc, ncp-check-nc-version: Dynamically determine upgrade path and auto-upgrade to latest minor version
...
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2024-07-28 19:14:51 +02:00
Tobias K
8d4fc3b8f9
library.sh: Detect DB_PREFIX dynamically if possible
...
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2024-05-04 11:50:31 +02:00
Jan Vlug
a6c4b245ff
Fix database prefix ( #1889 )
...
* Fix database prefix
Signed-off-by: Jan Vlug <jan.public@famvlug.nl>
---------
Signed-off-by: Jan Vlug <jan.public@famvlug.nl>
Co-authored-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2024-05-04 11:41:53 +02:00
Tobias Knöppler
eabb975a5a
ncp-update-nc: Restart notify_push after successful nc update on docker
...
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-04-05 15:33:51 +02:00
Tobias Knöppler
50640d9b9e
ncp-update-nc: Fix wrong base dir being used to check for interrupted installation on docker
...
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2023-03-26 15:36:25 +02:00
Tobias Knöppler
94c8c74b33
ncp-update-nc: Clear opcache before removing PHP, to avoid breaking the PHP upgrade
...
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 14:46:50 +01:00
Tobias Knöppler
27e2ed7b9e
ncp-update-nc: Don't remove systemd during PHP rollback
...
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 14:09:09 +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
f121aac809
library.sh: Simplify clear_opcache
...
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 01:21:06 +01:00
Tobias Knöppler
8a824db61c
ncp-update-nc: Ensure recovery directory exists before attempting restore
...
- ncp-update-nc: Clear opcache *before* running ncc commands
- build-sd-images: Don't abort pipeline when failing to retrieve redis credentials
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
f763e79f76
build-docker.yml: Include nextcloud update in update test
...
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 01:21:00 +01:00
Tobias K
04cf27148c
Clear php opcache on ncp update
...
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 01:21:00 +01:00
MB-Finski
ff8877db65
Change backup directory for docker compatibility
...
Improve docker compatibility: Change the backup directory for ./nextcloud/data to reside within the host file system (basedir) so as to avoid moving the data folder back and forth between the docker container and the host file system. In situations where the nextcloud data takes up more than the free available space on the host system, this may lead to loosing some or all of the data.
Signed-off-by: MB-Finski <64466176+MB-Finski@users.noreply.github.com>
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-08 21:16:34 +01:00
MB-Finski
d94ca6b109
Temporarily place backup to BASEDIR
...
Improves docker compatibility. Placing the backup file in /var/www/ will cause a failure in rolling back the update on containerized setups ("Can only restore from ext/btrfs/zfs filesystems"). The host filesystem is most likely compatible so using $BASEDIR as the backup location *should* solve this issue for most users.
Signed-off-by: MB-Finski <64466176+MB-Finski@users.noreply.github.com>
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-08 21:16:34 +01: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
4b6d3afb91
ncp-update-nc: Prevent upgrade to PHP 8 on docker
...
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-23 12:31:21 +02:00
thecalcaholic
e72fdf6d20
ncp-update-nc: Support the debug flag
...
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-22 21:36:54 +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
39ad3695a1
ncp-update-nc: Abort php upgrade if nc-limits fails
...
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-15 20:58:44 +02:00
thecalcaholic
1086361c35
ncp-update-nc: Remove redundant debian version compatibility check
...
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-15 17:31:17 +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
60692fe9bc
Fix notify_push sometimes using wrong URL
2022-07-20 00:43:53 +02:00
thecalcaholic
9a142d13d7
ncp-update-nc: Ensure notify_push is using localhost as NC URL
2022-07-20 00:23:25 +02:00
nachoparker
340a381926
upgrade to NC22.2.2
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-11-17 13:33:11 -07:00
nachoparker
80575ae849
ncp-update-nc: check skip major versions
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-18 08:01:25 -06:00
nachoparker
ea1e00c251
nc-update-nc: BTRFS support
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-10-05 13:50:37 -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
c037c11dfc
add bash completion to ncc
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-29 20:07:56 -06:00
nachoparker
534b9b505d
ncp-update-nc: pre-check that NC is currently working fine
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
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>
2021-09-20 09:59:35 -06:00
nachoparker
311cd2b769
improve btrfs/ext checks
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-20 09:59:35 -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
ec428a288f
upgrade to NC20.0.4
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-01-01 13:56:35 -07:00
nachoparker
42fd597e8b
nc-update-nc: improve error messages
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-12-12 19:48:22 -07:00
nachoparker
35c0d96d0b
nc-update-nc: ncp apps might not exist
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-11-30 20:19:51 -07:00
nachoparker
7afdc0fe8d
upgrade to NC20.0.2
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-11-27 14:54:46 -07:00
nachoparker
a335b5e2bf
build: use 64bit RaspiOS image
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-11-27 14:54:36 -07:00
nachoparker
17aae5640c
ncp-update-nc: check for ncc commands before using them
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-08-30 14:12:26 -06:00
nachoparker
3cf269a305
upgrade to NC19.0.2
...
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-08-29 09:05:40 -06:00
nachoparker
4b6572a113
nc-update-nc: fix case where imported cfg from non docker to docker
2019-03-18 19:51:29 -06:00
nachoparker
af5e35d00c
ncp-update-nc: BTRFS basedir not supported
2019-02-13 17:32:09 -07:00
nachoparker
338da330f4
ncp-update-nc: fix unnecessary quotes
2019-01-26 12:52:29 -07:00
nachoparker
d0ca44a6fc
docker: support for ncp-update-nc
2019-01-16 19:27:03 -07:00
nachoparker
f722c457c4
nc-update-nc: remove backup after restoring
2019-01-08 22:44:21 -07:00
nachoparker
f1d348e961
Revert "nc-update-nc: check app compatibility before before executing NC update ( #682 )"
...
This reverts commit 7ead0f0ad40ca48d803b848932ef95c1a6bf2d3a.
2019-01-08 22:43:15 -07:00
Tobias K
7ead0f0ad4
nc-update-nc: check app compatibility before before executing NC update ( #682 )
2019-01-08 07:43:30 +00:00
nachoparker
d6b7267bc2
ncp-update-nc: make sure cron.php is not running and there are no pending jobs
2018-10-14 16:35:41 -06:00