We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a3687 commit 70e2070Copy full SHA for 70e2070
1 file changed
.docker/init.sh
@@ -3,6 +3,9 @@
3
set -e
4
5
[ -z "${STORAGE_PATH}" ] && STORAGE_PATH="/usr/local/share/gvm/gsad/web/"
6
+[ -z "${STATE_FILE}" ] && STATE_FILE="/run/gsa/copying.done"
7
+
8
+rm -f "${STATE_FILE}"
9
10
if [ -n "${MOUNT_PATH}" ]; then
11
if ! [ -d "${MOUNT_PATH}" ]; then
@@ -29,6 +32,10 @@ if [ -n "${MOUNT_PATH}" ]; then
29
32
fi
30
33
31
34
35
+ STATE_DIR=$(dirname ${STATE_FILE})
36
+ mkdir -p "${STATE_DIR}"
37
+ touch "${STATE_FILE}"
38
39
if [ -n "${KEEP_ALIVE}" ]; then
40
sleep infinity
41
0 commit comments