15 lines
357 B
Django/Jinja
15 lines
357 B
Django/Jinja
#!/bin/bash
|
|
|
|
set -e
|
|
{% set pihole_uid = systemuserlist.pihole.uid -%}
|
|
{% set pihole_gid = systemuserlist.pihole.gid -%}
|
|
|
|
echo
|
|
echo "Start: $(date -Is)"
|
|
echo "setting uid={{ pihole_uid }},gid={{ pihole_gid }} for user='_unbound' in container."
|
|
|
|
groupmod -g {{ pihole_gid }} _unbound
|
|
usermod -u {{ pihole_uid }} -g {{ pihole_gid }} _unbound
|
|
|
|
exec /unbound.sh
|