Skip to content

Commit

Permalink
Fix zram-config update script
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Aug 23, 2024
1 parent 87223c0 commit 26392e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/zram.bash
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ init_zram_mounts() {
elif [[ -f /etc/ztab ]]; then
echo -n "$(timestamp) [openHABian] Updating zram service... "
if ! cond_redirect mkdir -p /usr/local/lib/zram-config/; then echo "FAILED (create directory)"; return 1; fi
if ! cond_redirect rm /usr/local/lib/zram-config/overlay; then echo "FAILED (remove old overlay)"; return 1; fi # remove old location of overlay binary this can probably be removed in the future
if ! cond_redirect rm -f /usr/local/lib/zram-config/overlay; then echo "FAILED (remove old overlay)"; return 1; fi # remove old location of overlay binary this can probably be removed in the future
if ! cond_redirect systemctl stop zram-config.service; then echo "FAILED (stop zram)"; return 1; fi
if ! [[ -d "$zramInstallLocation/zram-config/overlayfs-tools/.git" ]]; then
rm -rf "$zramInstallLocation/zram-config/overlayfs-tools"
Expand Down

0 comments on commit 26392e1

Please sign in to comment.