Fix permissions issue with data dir

If the mounted data directory on the host is owned by root, the znc user
within the container would fail to write any settings to disk.

Hence this changes ownership of the data directory to the znc user (Uid:
1000) and znc group (Gid: 1000) from within the container.
This commit is contained in:
2014-07-10 20:10:10 +01:00
parent 01d3e5eb53
commit cc821dec0c
3 changed files with 11 additions and 3 deletions

View File

@@ -6,8 +6,13 @@ set -e
ZNC_VERSION="1.4"
# Install build dependencies.
# Ensure package list is up to date.
apt-get update
# Install runtime dependencies.
apt-get install -y sudo
# Install build dependencies.
apt-get install -y wget build-essential libssl-dev libperl-dev pkg-config