mirror of
https://github.com/netdata/netdata.git
synced 2025-04-12 16:58:10 +00:00
fix: 🐛 docker bind-mount stock files creation (#15639)
This commit is contained in:
parent
5bbcd96d4b
commit
7773b5ee33
1 changed files with 3 additions and 2 deletions
|
@ -46,9 +46,10 @@ if [ -n "${PGID}" ]; then
|
||||||
usermod -a -G "${PGID}" "${DOCKER_USR}" || echo >&2 "Could not add netdata user to group docker with ID ${PGID}"
|
usermod -a -G "${PGID}" "${DOCKER_USR}" || echo >&2 "Could not add netdata user to group docker with ID ${PGID}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if mountpoint -q /etc/netdata && [ -z "$(ls -A /etc/netdata)" ]; then
|
if mountpoint -q /etc/netdata; then
|
||||||
echo "Copying stock configuration to /etc/netdata"
|
echo "Copying stock configuration to /etc/netdata"
|
||||||
cp -a /etc/netdata.stock/. /etc/netdata
|
cp -an /etc/netdata.stock/* /etc/netdata
|
||||||
|
cp -an /etc/netdata.stock/.[^.]* /etc/netdata
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -w "/etc/netdata" ]; then
|
if [ -w "/etc/netdata" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue