diff options
-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" |