Skip to content

Commit 4dace53

Browse files
committed
/storage => $storagedir
Signed-off-by: Markus Storm <[email protected]>
1 parent 1da5d6c commit 4dace53

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

install.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22

3-
TAG=openhabian_v1.6
3+
source /etc/openhabian.conf
4+
45

56
systemctl -q is-active zram-config && { echo "ERROR: zram-config service is still running. Please run \"sudo service zram-config stop\" to stop it and uninstall"; exit 1; }
67
[ "$(id -u)" -eq 0 ] || { echo "You need to be ROOT (sudo can be used)"; exit 1; }
@@ -21,6 +22,7 @@ cd overlayfs-tools
2122
make
2223
cd ..
2324

25+
sed -i "s|%STORAGE|${storagedir:-/storage}|g" zram-config.service
2426
# zram-config install
2527
install -m 755 zram-config /usr/local/sbin/
2628
install -m 755 zramsync /usr/local/sbin/

zram-config.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Before=openhab2.service smbd.service
77
Type=oneshot
88
TimeoutSec=300
99
RemainAfterExit=yes
10-
ExecStartPre=-/usr/local/sbin/zramsync "recover" "/storage/zram"
10+
ExecStartPre=-/usr/local/sbin/zramsync "recover" "%STORAGE/zram"
1111
ExecStart=/usr/local/sbin/zram-config "start"
1212

1313
[Install]

0 commit comments

Comments
 (0)