252 Commits

Author SHA1 Message Date
Tobias K
d9cee78384
ncp-update, update.sh: Inherit DBG flag from install script
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
2022-04-08 09:36:01 +02:00
nachoparker
9bf5ff032c update to Debian 11 Bullseye
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2022-03-02 14:53:24 -07:00
Christoph Rössig
7c361c5cb4
update: improve check for apt (#1356)
fix check for running apt during update
(https://github.com/nextcloud/nextcloudpi/issues/1354)

Update script is exiting if any process contains 'apt' in the name. pgrep interpretes <pattern> as regular expression. Whole process name to be checked with option -x.
2021-10-05 13:26:26 -06:00
nachoparker
26edf1f7b0 build: add LXC/LXD support
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-09-30 22:48:19 -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
nachoparker
abf668d6b4 update: cleanup
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2021-01-20 06:48:00 -07:00
nachoparker
0c538aef3c add notify_admin functionality
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2020-02-04 20:29:03 -07:00
nachoparker
c42bcc1738 update: fix matching values
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-11-30 08:47:14 -07:00
Nikolaos Perrakis
a208a02a53 Fix for reappearing opcache bug. (#1031)
Signed-off-by: Nikolaos Perrakis <nikperrakis@gmail.com>
2019-11-30 08:46:53 -07:00
nachoparker
0fc23905c0 add ncp-previews
Signed-off-by: nachoparker <nacho@ownyourbits.com>

add ncp-previews

Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-10-27 21:35:12 -06:00
nachoparker
d17fe03fb9 build: fix changed log2ram path
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-08-23 19:53:47 -06:00
nachoparker
e30271f96f armbian: fix distro check
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-07-24 17:26:05 -06:00
nachoparker
ef98253dd1 armbian: fix build
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-07-21 07:36:52 -06:00
nachoparker
31f7e52d9b update: fix distro check detection
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-07-20 10:46:34 -06:00
nachoparker
e4bd5feb66 move to buster/PHP7.3
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-07-18 03:55:39 -06:00
nachoparker
e74290d45e update: add distro migration step
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-07-08 05:18:05 -06:00
qrest
95a658f3fb build: do not enable NCP app (#940)
Signed-off-by: qrest <qrest@protonmail.com>
2019-07-06 23:14:01 +00:00
nachoparker
e3cab9b118 update: fix for non docker images
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-07-05 21:49:18 -06:00
qrest
aaeef7eaf8 update: copy NCP app to nextcloud directory (#936)
Signed-off-by: qrest <qrest@protonmail.com>
2019-07-05 21:43:58 -06:00
nachoparker
35526ab9fc build: use a system wide config file. Remove sury sources
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-07-05 21:43:54 -06:00
nachoparker
88da901edd ncp-update: fixes on the new step based upgrade system
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-06-29 16:22:16 -06:00
FaniD
2aa28d22a7 ncp-update: implement step based upgrade 2019-06-29 15:20:28 -06:00
nachoparker
fbdab43b96 ncp-web: adjust ipv6 local restrictions
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-06-29 15:16:06 -06:00
nachoparker
ce4477c8a4 nc-previews: adjust preview sizes
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-06-29 15:14:46 -06:00
nachoparker
81ca69a058 fix upgrade
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-06-04 05:36:03 -06:00
nachoparker
5924131f6f fail2ban: fix missing ufw filter
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-06-01 11:17:56 -06:00
nachoparker
3b36dd3752 build: refactor docker builds
Signed-off-by: nachoparker <nacho@ownyourbits.com>
2019-05-12 21:31:38 -06:00
nachoparker
758908128a fix logrotate files 2019-05-11 11:13:52 -06:00
nachoparker
f34354c336 ncp-web: add backups panel 2019-04-30 18:02:58 -06:00
nachoparker
b3c7d1375e letsencrypt: switch to apt version 2019-04-29 19:57:40 -06:00
nachoparker
02efd614fd nc-restore: check btrfs command 2019-04-29 19:57:40 -06:00
nachoparker
37546093a6 armbian: fix uu 2019-04-06 07:51:55 -06:00
nachoparker
a6e33b104c update UPDATE config section 2019-04-05 00:47:25 -06:00
nachoparker
c775a46b3f cleanup update.sh 2019-04-05 00:22:25 -06:00
nachoparker
194d11101b create UPDATE config section 2019-04-04 19:28:33 -06:00
paschaef
b11c13e531 nc-backup: improve needed space calculation (#864) 2019-04-04 19:21:46 -06:00
nachoparker
7e40a70523 letsencrypt: make sure deploy dir exists 2019-03-26 11:46:00 -06:00
nachoparker
38799fd537 letsencrypt: rework notification 2019-03-23 10:27:54 -06:00
nachoparker
24602646d9 fix cron path 2019-03-23 10:19:35 -06:00
nachoparker
e99662e3f0 update PGP keys 2019-03-23 08:14:09 -06:00
nachoparker
89cc0425a7 nc-init: previews settings 2019-03-10 23:39:01 -06:00
nachoparker
0c95243d8f unattended upgrades: update labels 2019-03-10 23:39:01 -06:00
nachoparker
1a46667df5 cleanup update.sh 2019-03-08 16:40:22 -07:00
nachoparker
ba64390899 update fix LE live not existing 2019-03-07 07:09:32 -07:00
nachoparker
060f0042f6 fix LE cron 2019-03-05 11:22:12 -07:00
nachoparker
41601e94ed cleanup update.sh 2019-03-05 11:22:12 -07:00
nachoparker
9c39606aab nc-nextcloud: disable .user.ini 2019-03-05 11:22:12 -07:00
nachoparker
54565e476d cleanup update.sh 2019-03-05 11:22:12 -07:00
nachoparker
e39c3abd5b lamp: adjust mariadb parameters 2019-03-05 11:22:12 -07:00
nachoparker
c9c2153373 nc-zram: remove from docker 2019-02-10 19:16:27 -07:00