diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-06-18 15:41:46 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-06-18 17:19:22 +0300 |
commit | a4fb4f70e7534d3365a803a7dd0453203337ff79 (patch) | |
tree | f882d35807ae45a35d28ba0cf3a7dd12a7fdd0ad | |
parent | 676776f4e68bc75dc38088f24dc9a5b9b4593b90 (diff) |
armbian: nc-ramlogs is active by default
-rw-r--r-- | etc/ncp-config.d/nc-autoupdate-nc.sh | 2 | ||||
-rw-r--r-- | etc/ncp-config.d/nc-ramlogs.sh | 5 |
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; } |