494 Commits

Author SHA1 Message Date
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
Tobias Knöppler
9afbf0b5b5
Implement clear-php-opcache.sh
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
Victor-ray, S
c23abe7e05
࿓❯ Added array declarations so mapfile works properly
Signed-off-by: Victor-ray, S <12261439+ZendaiOwl@users.noreply.github.com>
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
Victor-ray, S
bc0abc6c48
ncp-diag, web-ui: Integrate new port check backend
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:20:59 +01:00
Tobias Knöppler
2c94c420d8
nc-snapshot-auto.sh: Ad quotes to allow datadirectory paths with spaces
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
2023-01-22 01:20:59 +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
9fdd7822cd
build-docker.yml, build-sd-images.yml: Increase retries and timeouts during tests
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
Tobias K
72d35fbb99
ncp-restore: Add command for merging data directory with backup
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-08 21:16:38 +01:00
Tobias K
71f8a2ef81
ncp-restore: Use new default data directory location when resetting datadir
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-08 21:16:37 +01:00
Tobias K
ef4ec175ff
ncp-restore: Improve clarity of output regarding data conflicts
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-08 21:16:37 +01:00
Tobias K
da2dedc450
Fix erroneously created symlinks in /usr/local/bin/ncp
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-08 21:16:37 +01:00
Tobias K
731e25e36b
nc-datadir.sh: Prevent btrfs commands from being executed on docker
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-08 21:16:36 +01:00
Tobias K
0c3ac35e39
ncp-restore: Don't assume data directory inside nc directory on docker
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-08 21:16:36 +01:00
Tobias K
64fa7d4e10
Fix setting up datadir at new default location during docker build
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-08 21:16:35 +01:00
Tobias K
cde1b44063
Move ncp-backup and ncp-restore to separate files (instead relying on cat during installation)
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-08 21:16:35 +01:00
Tobias K
2072f77720
Installer and pipeline fixes
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-08 21:16:35 +01:00
Tobias K
8149493439
SSH: Add option to enable sudo for ssh user.
- Disable root login

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-08 21:16:35 +01:00
Tobias K
bd835dcd82
Fix installation and pipeline errors
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-08 21:16:34 +01:00
Tobias K
97085dbc3f
nc-restore: Fix potential dataloss when restoring backup (fixes #1417)
- nc-restore: Keep old data directory if present
- nc-restore: Temporarily move and restore user files during nc-restore

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-08 21:16:34 +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
9975742ff3
SSH.sh: Enable user when configuring SSH
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-10-03 23:23:17 +02:00
Tobias K
0759aeaaae SSH.sh: Reenable pi user if selected in SSH 2022-09-30 12:32:50 +02:00
thecalcaholic
220a53abd3
Fix HPB service
vm-tests.yml: Fix invalid variable usage

Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-29 03:36:59 +02:00
Tobias Knöppler
47153b3c8d
Merge pull request #1596 from nextcloud/fix/invalid-db-dir 2022-09-29 02:02:21 +02:00
thecalcaholic
4d56423c6b
nc-limits.sh: Limit max memory to 4GB on 32 bit systems
run-parts.sh: Run backup on startup not shutdown

Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-29 02:01:36 +02:00
thecalcaholic
0040f89e81
run-parts.sh: Simplify backup creation
nextcloud-domain.sh: Only start notify_push if the nc_domain has been set

Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-29 00:58:34 +02:00
thecalcaholic
82f938c52b
metrics.sh: Fix incorrect return code in relaod_metrics_config if ncp-metrics-export was disabled
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-28 16:18:53 +02:00
Tobias Knöppler
672731adf8
gateway instead of Gateway (as ncp-report looks for this) (#1586)
Signed-off-by: Jürgen <55851807+schoetju@users.noreply.github.com>
Co-authored-by: Jürgen <55851807+schoetju@users.noreply.github.com>
2022-09-27 20:25:21 +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
1d7ce6d8cd
ncp-dist-upgrade: Fix attempt to install php version that is not in apt repositories of bullseye
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-27 20:20:48 +02:00
Tobias K
0c3a817421
ncp-update: Prevent running update script inside docker without explicit confirmation
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
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
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
cdce1c24de
ncp-diag: Fix datadir incorrectly report if running as user www-data
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-22 12:28:16 +02:00
thecalcaholic
d98356e335
ncp-report: Don't rely on functions defined in library.sh
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-16 14:26:51 +02:00
thecalcaholic
7225c2c898
nc-limits.sh: Migrate installation of www.conf to ncp template
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-16 00:16:25 +02:00
thecalcaholic
4737b56d71
nc-limits.sh: Suppress errors if configuration files don't exist
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-15 23:59:35 +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
c3fbaa61ac
UFW.sh: Fix syntax of logrotate config modification
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-09-15 17:31:17 +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
55c4ff7595
ncp-update: Suppress output from fetching git tags
Signed-off-by: thecalcaholic <6317548+theCalcaholic@users.noreply.github.com>
2022-08-29 20:12:38 +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
c072a9c4d7 ncp-update: Only checkout pr after moving to git directory 2022-08-25 12:41:56 +02:00
Tobias K
b88ce441e4 nc-datadir.sh: Add success message 2022-08-21 15:21:05 +02:00
Victor-ray
220c55528f
ncp-diag: Fix port check for dual stack lite 2022-08-21 14:24:46 +02:00