Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2018-06-18 15:41:46 +0300
committernachoparker <nacho@ownyourbits.com>2018-06-18 17:19:22 +0300
commita4fb4f70e7534d3365a803a7dd0453203337ff79 (patch)
treef882d35807ae45a35d28ba0cf3a7dd12a7fdd0ad
parent676776f4e68bc75dc38088f24dc9a5b9b4593b90 (diff)
armbian: nc-ramlogs is active by default
-rw-r--r--etc/ncp-config.d/nc-autoupdate-nc.sh2
-rw-r--r--etc/ncp-config.d/nc-ramlogs.sh5
2 files changed, 7 insertions, 0 deletions
diff --git a/etc/ncp-config.d/nc-autoupdate-nc.sh b/etc/ncp-config.d/nc-autoupdate-nc.sh
index 2a63c5c8..7072e822 100644
--- a/etc/ncp-config.d/nc-autoupdate-nc.sh
+++ b/etc/ncp-config.d/nc-autoupdate-nc.sh
@@ -11,6 +11,8 @@
ACTIVE_=no
NOTIFYUSER_=ncp
DESCRIPTION="Automatically apply Nextcloud updates"
+
+# just change this value and re-activate in update.sh to upgrade users
VERSION=13.0.4
configure()
diff --git a/etc/ncp-config.d/nc-ramlogs.sh b/etc/ncp-config.d/nc-ramlogs.sh
index b3dee909..35199051 100644
--- a/etc/ncp-config.d/nc-ramlogs.sh
+++ b/etc/ncp-config.d/nc-ramlogs.sh
@@ -14,6 +14,11 @@ DESCRIPTION="mount logs in RAM to prevent SD degradation (faster, consumes more
INFOTITLE="Warning"
INFO="You need to reboot for this change to take effect"
+is_active()
+{
+ systemctl -q is-active log2ram &>/dev/null
+}
+
install()
{
[[ -d /var/log.hdd ]] || [[ -d /var/hdd.log ]] && { echo "log2ram detected, not installing"; return; }