@cryptotaxi247 / netdata-1 / commits / 7773b5ee3

fix: 🐛 docker bind-mount stock files creation (#15639)

Leny committed Aug 1, 2023 at 23:16 UTC 7773b5ee330014dced7b037d0774e41dd68efafa
1 file changed +3 -2
packaging/docker/run.sh
+3 -2
@@ -46,9 +46,10 @@ if [ -n "${PGID}" ]; then
46 usermod -a -G "${PGID}" "${DOCKER_USR}" || echo >&2 "Could not add netdata user to group docker with ID ${PGID}"
47 fi
48
49 -if mountpoint -q /etc/netdata && [ -z "$(ls -A /etc/netdata)" ]; then
49 +if mountpoint -q /etc/netdata; then
50 echo "Copying stock configuration to /etc/netdata"
51 - cp -a /etc/netdata.stock/. /etc/netdata
51 + cp -an /etc/netdata.stock/* /etc/netdata
52 + cp -an /etc/netdata.stock/.[^.]* /etc/netdata
53 fi
54
55 if [ -w "/etc/netdata" ]; then