15 lines
247 B
Bash
15 lines
247 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
PUID=${PUID:-911}
|
||
|
PGID=${PGID:-911}
|
||
|
|
||
|
groupmod -o -g "$PGID" abc 2>/dev/null
|
||
|
usermod -o -u "$PUID" abc 2>/dev/null
|
||
|
|
||
|
for f in /etc/cont-init.d/*; do
|
||
|
sh "$f"
|
||
|
done
|
||
|
|
||
|
exec su-exec abc pyload --userdir /config --storagedir /downloads
|