Skip to content

Commit

Permalink
escape variables
Browse files Browse the repository at this point in the history
  • Loading branch information
oehrlis committed Apr 24, 2023
1 parent d412f16 commit 54dfb3a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/guacamole_init.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54dfb3a

Please sign in to comment.