From 4c45586378f46cf1cc277ac5c10bfe0a0b2fdaee Mon Sep 17 00:00:00 2001 From: Chase Wright Date: Thu, 20 Jan 2022 15:53:12 -0600 Subject: [PATCH] Create guacd.conf before starting service --- guac-install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/guac-install.sh b/guac-install.sh index 74ebd62..163fe8e 100755 --- a/guac-install.sh +++ b/guac-install.sh @@ -639,6 +639,14 @@ else fi echo +# Create guacd.conf file required for 1.4.0 +echo -e "${BLUE}Create guacd.conf file...${NC}" +cat >> /etc/guacamole/guacd.conf <<- "EOF" +[server] +bind_host = 0.0.0.0 +bind_port = 4822 +EOF + # Ensure guacd is started echo -e "${BLUE}Starting guacd service & enable at boot...${NC}" service guacd stop 2>/dev/null @@ -676,14 +684,6 @@ fi # I think there is another service called firewalld that some people could be running instead # Unless someone opens an issue about it or submits a pull request, I'm going to ignore it for now -# Create guacd.conf file required for 1.4.0 -echo -e "${BLUE}Create guacd.conf file...${NC}" -cat >> /etc/guacamole/guacd.conf <<- "EOF" -[server] -bind_host = 0.0.0.0 -bind_port = 4822 -EOF - # Cleanup echo -e "${BLUE}Cleanup install files...${NC}" rm -rf guacamole-*