Skip to content

Commit faee38d

Browse files
authored
Merge pull request #4 from reprostat/custombase
GUACAMOLE-2114: fix pre-configured GUACAMOLE_HOME
2 parents a607e41 + a768a4a commit faee38d

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

guacamole-docker/entrypoint.d/100-generate-guacamole-home.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ echo "Using GUACAMOLE_HOME: $GUACAMOLE_HOME"
8282
if [[ "$(ls -A $GUACAMOLE_HOME)" ]]; then
8383
if [[ -e $GUACAMOLE_HOME/guacamole.properties ]]; then
8484
echo "Warning: GUACAMOLE_HOME seems to be already configured"
85-
return
85+
export SKIP_GUACAMOLE_HOME=1
86+
return 0
8687
else
8788
echo "Warning: GUACAMOLE_HOME is not empty, but does not contain a guacamole.properties file."
8889
echo " The contents of GUACAMOLE_HOME will be erased."

guacamole-docker/entrypoint.d/500-generate-tomcat-catalina-base.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ echo "Using CATALINA_BASE: $CATALINA_BASE"
5353
if [[ "$(ls -A $CATALINA_BASE)" ]]; then
5454
if [[ -e $CATALINA_BASE/conf/catalina.properties ]]; then
5555
echo "Warning: CATALINA_BASE seems to be already configured"
56-
return
56+
return 0
5757
else
5858
echo "Warning: CATALINA_BASE is not empty, but does not contain a conf/catalina.properties file."
5959
echo " The contents of CATALINA_BASE will be erased."

guacamole-docker/entrypoint.d/700-configure-features.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
## Zero if the feature associated with the given environment variable
4545
## prefix is enabled, non-zero otherwise.
4646
##
47+
if [[ ! -z "$SKIP_GUACAMOLE_HOME" && "$SKIP_GUACAMOLE_HOME" == 1 ]]; then
48+
echo "Skipping feature configuration due to pre-configured GUACAMOLE_HOME."
49+
return 0
50+
fi
51+
4752
is_feature_enabled() {
4853

4954
local VAR_BASE="$1"

0 commit comments

Comments
 (0)