mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
20.23.2021 314107f3a3a54921a448672d8066dea470ea60cc
entrypoint.sh simplified.
2 files modified
11 ■■■■■ changed files
borgbutler-docker/app/entrypoint.sh 6 ●●●●● patch | view | raw | blame | history
borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/BorgButlerApplication.kt 5 ●●●●● patch | view | raw | blame | history
borgbutler-docker/app/entrypoint.sh
@@ -61,9 +61,11 @@
#Trap SIGTERM
trap cleanup INT SIGTERM
echo "Starting java ${JAVA_OPTS} -cp app/web/*:app/lib/* -DBorgButlerHome=/BorgButler/ -Dserver.address=0.0.0.0 -Ddocker=true ${JAVA_MAIN} ${JAVA_ARGS}"
START="${JAVA_OPTS} -cp app/web/*:app/lib/* -DBorgButlerHome=/BorgButler/ -Dserver.address=0.0.0.0 -Ddocker=true ${JAVA_MAIN} ${JAVA_ARGS}"
java $JAVA_OPTS -cp app/web/*:app/lib/* -DBorgButlerHome=/BorgButler/ -Dserver.address=0.0.0.0 -Ddocker=true $JAVA_MAIN $JAVA_ARGS &
echo "Starting: java ${START}"
java $START &
CHILD=$!
wait $CHILD
borgbutler-server/src/main/kotlin/de/micromata/borgbutler/server/BorgButlerApplication.kt
@@ -210,10 +210,11 @@
        private const val ENVIRONMENT_FILE = "environment.sh"
        private const val ENVIRONMENT_FILE_INITIAL_CONTENT = "#!/bin/bash\n\n" +
                "# Set the java options here (for docker installation only):\n" +
                "# Set the java options and arguments here for Your docker installation only.\n\n" +
                "# Increase ProjectForge's memory setting:\n" +
                "#export JAVA_OPTS=-DXmx4g\n" +
                "export JAVA_OPTS=\n\n" +
                "# Set your options here (will be used for starting\n" +
                "# Define your optional program arguments here\n" +
                "export JAVA_ARGS=\n"
    }
}