non root user

This commit is contained in:
JMARyA 2024-03-14 12:27:44 +01:00
parent 3e4e3820ff
commit c2ddb4a738
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 12 additions and 1 deletions

10
entrypoint.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
echo "Creating User ${UID:-1000}"
usermod -u "${UID:-1000}" hoard || exit 1
chown -R hoard /downloads
mkdir /.cache && chown -R hoard /.cache
chown -R hoard /download.db
su hoard -c /hoard