diff options
author | nachoparker <nacho@ownyourbits.com> | 2020-01-14 19:40:13 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2020-01-14 19:40:24 +0300 |
commit | 6359ca307d3a1412c2b29fa9a9e69575ca4a4974 (patch) | |
tree | 97df8450ea771cf8d80a73578d3bd3871268be89 | |
parent | 953c47a0e5144f0d53498b7e4955f05ffdd548e5 (diff) |
nc-ramlogs: disable armbian-ramlog when inactivev1.20.3
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rw-r--r-- | bin/ncp/SYSTEM/nc-ramlogs.sh | 7 | ||||
-rw-r--r-- | changelog.md | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/bin/ncp/SYSTEM/nc-ramlogs.sh b/bin/ncp/SYSTEM/nc-ramlogs.sh index c53d92ac..88b0e41b 100644 --- a/bin/ncp/SYSTEM/nc-ramlogs.sh +++ b/bin/ncp/SYSTEM/nc-ramlogs.sh @@ -32,14 +32,15 @@ install() configure() { + [[ -f /lib/systemd/system/armbian-ramlog.service ]] && local ramlog=armbian-ramlog || local ramlog=log2ram + [[ $ACTIVE != "yes" ]] && { - systemctl disable log2ram - systemctl stop log2ram + systemctl disable "$ramlog" + systemctl stop "$ramlog" echo "Logs in SD. Reboot to take effect" return } - [[ -f /lib/systemd/system/armbian-ramlog.service ]] && local ramlog=armbian-ramlog || local ramlog=log2ram systemctl enable "$ramlog" systemctl start "$ramlog" diff --git a/changelog.md b/changelog.md index 2b2b5bc1..20367284 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v1.20.2](https://github.com/nextcloud/nextcloudpi/commit/97cb2ff) (2019-11-13) Extend the ssh configuration check by calling the echo command if the first check fails. +[v1.20.3](https://github.com/nextcloud/nextcloudpi/commit/780d475) (2020-01-14) nc-ramlogs: disable armbian-ramlog when inactive + +[v1.20.2](https://github.com/nextcloud/nextcloudpi/commit/953c47a) (2019-11-13) Extend the ssh configuration check by calling the echo command if the first check fails. [v1.20.1](https://github.com/nextcloud/nextcloudpi/commit/6d0bc6b) (2019-12-19) Revert "build: dont use empty values by default" |