Skip to content

Commit 6359ca3

Browse files
committed
nc-ramlogs: disable armbian-ramlog when inactive
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent 953c47a commit 6359ca3

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

bin/ncp/SYSTEM/nc-ramlogs.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ install()
3232

3333
configure()
3434
{
35+
[[ -f /lib/systemd/system/armbian-ramlog.service ]] && local ramlog=armbian-ramlog || local ramlog=log2ram
36+
3537
[[ $ACTIVE != "yes" ]] && {
36-
systemctl disable log2ram
37-
systemctl stop log2ram
38+
systemctl disable "$ramlog"
39+
systemctl stop "$ramlog"
3840
echo "Logs in SD. Reboot to take effect"
3941
return
4042
}
4143

42-
[[ -f /lib/systemd/system/armbian-ramlog.service ]] && local ramlog=armbian-ramlog || local ramlog=log2ram
4344
systemctl enable "$ramlog"
4445
systemctl start "$ramlog"
4546

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
[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.
2+
[v1.20.3](https://github.com/nextcloud/nextcloudpi/commit/780d475) (2020-01-14) nc-ramlogs: disable armbian-ramlog when inactive
3+
4+
[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.
35

46
[v1.20.1](https://github.com/nextcloud/nextcloudpi/commit/6d0bc6b) (2019-12-19) Revert "build: dont use empty values by default"
57

0 commit comments

Comments
 (0)