Files
Auto_Bangumi/docker/etc/cont-init.d/020-fixuser
2023-04-29 12:24:04 +08:00

13 lines
235 B
Plaintext

#!/usr/bin/with-contenv bash
# shellcheck shell=bash
function __fixuser {
groupmod -o -g "${PGID}" ab
usermod -o -u "${PUID}" ab
chown ab:ab -R /app /ab
}
__fixuser 2>&1 | sed "s#^#cont-init: info: $(realpath $0): &#g"