Files
moveoncomplete/entrypoint.sh
Matthias Bilger 9f82cd06d3
All checks were successful
continuous-integration/drone/push Build is passing
username update
2019-10-24 08:29:49 +02:00

14 lines
337 B
Bash
Executable File

#!/bin/sh
DEFAULT_UID=1000
DEFAULT_GID=1000
COPYUSER_UID=${COPYUSER_UID:-${DEFAULT_UID}}
COPYUSER_GID=${COPYUSER_GID:-${DEFAULT_GID}}
groupmod copyuser -g ${COPYUSER_GID} 2>/dev/null || true
usermod copyuser -u ${COPYUSER_UID} -g ${COPYUSER_GID} 2>/dev/null
chown -R copyuser:copyuser /in /out
su copyuser -c "python -u /script.py"