mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 05:18:11 +01:00
12 lines
168 B
Plaintext
12 lines
168 B
Plaintext
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
ZNC_DIR="/znc"
|
||
|
ZNC_OWNER=$(stat -c "%U" ${ZNC_DIR})
|
||
|
|
||
|
if [ "${ZNC_OWNER}" != "znc" ]; then
|
||
|
chown -R znc:znc ${ZNC_DIR}
|
||
|
fi
|
||
|
|
||
|
exec sudo -u znc "$@"
|