parent
3a25a4a6ac
commit
5f398db202
@ -0,0 +1,6 @@
|
||||
# "docker run -ti znc sh" should work, according to
|
||||
# https://github.com/docker-library/official-images
|
||||
|
||||
if [ "${1:0:1}" != '-' ]; then
|
||||
exec "$@"
|
||||
fi
|
@ -0,0 +1,3 @@
|
||||
# Might be overriden in some later file, when using "FROM znc"
|
||||
|
||||
DATADIR="/znc-data"
|
@ -0,0 +1,5 @@
|
||||
# Make sure $DATADIR is owned by znc user. This affects ownership of the
|
||||
# mounted directory on the host machine too.
|
||||
|
||||
chown -R znc:znc "$DATADIR" || exit 1
|
||||
chmod 700 "$DATADIR" || exit 2
|
@ -0,0 +1,5 @@
|
||||
# ZNC itself responds to SIGTERM, and reaps its children, but whatever was
|
||||
# started via *shell module is not guaranteed to reap their children.
|
||||
# That's why using tini.
|
||||
|
||||
exec /sbin/tini -- su-exec znc:znc /opt/znc/bin/znc --foreground --datadir "$DATADIR" "$@"
|
@ -1,27 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# "docker run -ti znc sh" should work, according to
|
||||
# https://github.com/docker-library/official-images
|
||||
if [ "${1:0:1}" != '-' ]; then
|
||||
exec "$@"
|
||||
fi
|
||||
|
||||
# Options.
|
||||
DATADIR="/znc-data"
|
||||
|
||||
# This file is added by znc:full image
|
||||
if [ -r /znc-build-modules.sh ]; then
|
||||
source /znc-build-modules.sh || exit 3
|
||||
fi
|
||||
|
||||
cd /
|
||||
|
||||
# Make sure $DATADIR is owned by znc user. This affects ownership of the
|
||||
# mounted directory on the host machine too.
|
||||
chown -R znc:znc "$DATADIR" || exit 1
|
||||
chmod 700 "$DATADIR" || exit 2
|
||||
|
||||
# ZNC itself responds to SIGTERM, and reaps its children, but whatever was
|
||||
# started via *shell module is not guaranteed to reap their children.
|
||||
# That's why using tini.
|
||||
exec /sbin/tini -- su-exec znc:znc /opt/znc/bin/znc --foreground --datadir "$DATADIR" "$@"
|
@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
for f in /startup-sequence/*; do
|
||||
source "$f" || exit 1
|
||||
done
|
Loading…
Reference in new issue