Files
hyperion-docker/start.sh
2026-02-06 13:07:48 +01:00

15 lines
312 B
Bash

#!/bin/bash
# Loop through arguments
for arg in "$@"; do
case "$arg" in
uid=*) uid="${arg#*=}" ;;
gid=*) gid="${arg#*=}" ;;
esac
done
groupmod -g $gid hyperion
usermod -u $uid hyperion
chown -R hyperion:hyperion /config
sudo -u hyperion /usr/bin/hyperiond/bin/hyperiond -i --userdata /config