Skip to content

Commit

Permalink
Use variable to reference config file
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Feb 22, 2025
1 parent 9b67e96 commit ba9b810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/nodejs-apps.bash
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ frontail_remove() {
fi
if cond_redirect systemctl -q daemon-reload; then echo "OK"; else echo "FAILED (daemon-reload)"; return 1; fi
elif (whiptail --title "Frontail Removal" --yes-button "Don't show again" --no-button "Keep showing" --yesno "$rememberChoice" 10 84); then
sed -i -e "s/^.*frontail_remove.*$/frontail_remove=true/g" "/etc/openhabian.conf"
# shellcheck source=/etc/openhabian.conf disable=SC2154
sed -i -e "s/^.*frontail_remove.*$/frontail_remove=true/g" "${configFile}"
fi
fi
}
Expand Down

0 comments on commit ba9b810

Please sign in to comment.