@@ -950,7 +950,7 @@ install_grott() {
950950 local serviceTemplate=" ${BASEDIR:-/ opt/ openhabian} /includes/${serviceName} "
951951 local runScript=" grott.py"
952952
953- # Constants Grott GitHub files
953+ # Constants for Grott GitHub files
954954 local grottSourceUrl=" https://raw.githubusercontent.com/johanmeijer/grott/master"
955955 local grottSourceFiles=(
956956 " grott.py"
@@ -964,7 +964,7 @@ install_grott() {
964964 local grottExtFile=" grottext.py"
965965
966966 # # Install Grott Proxy
967- if [[ $installType == " install" ]]; then # Corrected: Use $installType
967+ if [[ $installType == " install" ]]; then
968968 echo " $( timestamp) [openHABian] Installing Grott Proxy..."
969969
970970 # Get default IPv4 address
@@ -1004,15 +1004,15 @@ install_grott() {
10041004 return 1
10051005 }
10061006
1007- # Create grott.ini configuration by modifying the template
1007+ # Create grott.ini configuration in Grott folder by modifying the template
10081008 if ! sed \
10091009 -e " s|%URL|$extUrl |g" \
10101010 " $iniTemplate " > " $iniFile " ; then
10111011 echo " FAILED (configure ${iniName} )"
10121012 return 1
10131013 fi
10141014
1015- # Create grott.service systemd configuration by modifying the template
1015+ # Create grott.service configuration in systemd folder by modifying the template
10161016 if ! sed \
10171017 -e " s|%USERNAME|$_user |g" \
10181018 -e " s|%DIRECTORY|$grottFolder |g" \
@@ -1031,7 +1031,7 @@ install_grott() {
10311031 fi
10321032
10331033 # # Remove Grott Proxy
1034- if [[ $installType == " remove" ]]; then # Corrected: Use $installType
1034+ if [[ $installType == " remove" ]]; then
10351035 echo " $( timestamp) [openHABian] Removing Grott Proxy... "
10361036
10371037 # Stop and disable systemd service
@@ -1041,7 +1041,7 @@ install_grott() {
10411041 # Remove systemd service file
10421042 if ! cond_redirect rm -f " $serviceFile " ; then echo " FAILED (remove ${serviceFile} )" ; return 1; fi
10431043
1044- # Remove grott folder
1044+ # Remove Grott folder
10451045 if ! cond_redirect rm -rf " $grottFolder " ; then echo " FAILED (remove ${grottFolder} )" ; return 1; fi
10461046
10471047 if [[ -n " $INTERACTIVE " ]]; then
0 commit comments