diff --git a/functions/openhab.bash b/functions/openhab.bash index ded527bc7..b0432662a 100644 --- a/functions/openhab.bash +++ b/functions/openhab.bash @@ -184,9 +184,9 @@ openhab_shell_interfaces() { ## openhab_clean_cache() { echo -n "$(timestamp) [openHABian] Cleaning the openHAB cache... " - if ! cond_redirect systemctl stop "${ohPkgName}".service; then echo "FAILED (stop service)"; return 1; fi + if ! cond_redirect systemctl stop ${ohPkgName}.service; then echo "FAILED (stop service)"; return 1; fi if ! cond_redirect openhab-cli clean-cache; then echo "FAILED (clean)"; return 1; fi - if cond_redirect systemctl restart "${ohPkgName}".service; then echo "OK"; else echo "FAILED (restart service)"; return 1; fi + if cond_redirect systemctl restart ${ohPkgName}.service; then echo "OK"; else echo "FAILED (restart service)"; return 1; fi } ## Function to download and install special vim syntax for openHAB files.