add debugging
This commit is contained in:
@@ -4,9 +4,11 @@ set -x
|
|||||||
trap 'exit 1' SIGINT SIGHUP
|
trap 'exit 1' SIGINT SIGHUP
|
||||||
source /etc/birdnet/birdnet.conf
|
source /etc/birdnet/birdnet.conf
|
||||||
if [ -n "${BIRDNET_USER}" ]; then
|
if [ -n "${BIRDNET_USER}" ]; then
|
||||||
|
echo "BIRDNET_USER: ${BIRDNET_USER}"
|
||||||
USER=${BIRDNET_USER}
|
USER=${BIRDNET_USER}
|
||||||
HOME=/home/${BIRDNET_USER}
|
HOME=/home/${BIRDNET_USER}
|
||||||
else
|
else
|
||||||
|
echo "WARNING: no BIRDNET_USER found"
|
||||||
USER=$(awk -F: '/1000/ {print $1}' /etc/passwd)
|
USER=$(awk -F: '/1000/ {print $1}' /etc/passwd)
|
||||||
HOME=$(awk -F: '/1000/ {print $6}' /etc/passwd)
|
HOME=$(awk -F: '/1000/ {print $6}' /etc/passwd)
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user