infra/roles/invidious/templates/invidious-entrypoint.sh.j2

19 lines
381 B
Django/Jinja

#!/bin/bash
set -e
{% set user = systemuserlist.invidious %}
echo "container user: invidious"
echo "container group: invidious"
echo
echo "system username: {{ user.username }}"
echo
echo "setting uid to: {{ user.uid }}"
echo "setting gid to: {{ user.gid }}"
groupmod -g {{ user.gid }} invidious
usermod -u {{ user.uid }} -g {{ user.gid }} invidious
exec /invidious/invidious