diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ea3644..fcb8ece 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Removed +## [3.0.10] - 2023-04-24 + +### Fixed + +- correctly escape variables in *guacamole_init.template.sh* + ## [3.0.9] - 2023-04-24 ### Fixed diff --git a/scripts/guacamole_init.template.sh b/scripts/guacamole_init.template.sh index f7bbf98..bab9474 100644 --- a/scripts/guacamole_init.template.sh +++ b/scripts/guacamole_init.template.sh @@ -161,7 +161,7 @@ export PRIVATE_IP=\$(hostname -I |cut -d' ' -f1) BOOTSTRAP_STATUS1=\$((sudo cloud-init status 2>/dev/null|| echo "n/a")|cut -d' ' -f2|sed 's/ //g') BOOTSTRAP_STATUS2=\$(cat /var/log/boostrap_custom_config_status 2>/dev/null|| echo "n/a") BOOTSTRAP_CURRENT=$(ps -ef|grep guacamole_init.sh|grep -iv grep|wc -l) -if [[ "$BOOTSTRAP_CURRENT" == *"running"* ]] && [ $BOOTSTRAP_CURRENT -eq 0 ]; then +if [[ "\$BOOTSTRAP_STATUS2" == *"running"* ]] && [ \$BOOTSTRAP_CURRENT -eq 0 ]; then BOOTSTRAP_STATUS2="error" fi