10 lines
207 B
Bash
10 lines
207 B
Bash
#!/bin/bash
|
|
|
|
echo "Creating User ${UID:-1000}"
|
|
useradd -m -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
|