Skip to content

Commit

Permalink
change BOOTSTRAP_STATUS2 replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
oehrlis committed Apr 24, 2023
1 parent 65d2c97 commit 89f29a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/guacamole_init.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ BOOTSTRAP_STATUS1=\$((sudo cloud-init status 2>/dev/null|| echo "n/a")|cut -d' '
BOOTSTRAP_STATUS2=\$(cat /var/log/bootstrap_custom_config_status 2>/dev/null|| echo "n/a")
BOOTSTRAP_CURRENT=\$(ps -ef|grep bootstrap_linux_host.sh|grep -iv grep|wc -l)
if [[ "\$BOOTSTRAP_STATUS2" == *"running"* ]] && [ \$BOOTSTRAP_CURRENT -eq 0 ]; then
BOOTSTRAP_STATUS2=\${BOOTSTRAP_STATUS2//running/error}
BOOTSTRAP_STATUS2=\$(echo "\$BOOTSTRAP_STATUS2" | sed "s/running/error/g")
fi
echo "
Expand Down

0 comments on commit 89f29a0

Please sign in to comment.