changes docker build

This commit is contained in:
David Claeys
2026-01-27 09:10:14 +01:00
parent fd3fc34644
commit 6a670a7f2b
2 changed files with 32 additions and 19 deletions

17
start.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/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
ln -s /root/.hyperion /config
chown -R hyperion:hyperion /config
sudo -u hyperion /usr/bin/hyperiond -v --service --userdata /config
hyperiond -i