updated su syntax
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-10-23 20:49:10 +02:00
parent 31e7d0e50a
commit 94a1350f5a

View File

@@ -7,7 +7,6 @@ MAYAN_USER_UID=${MAYAN_USER_UID:-${DEFAULT_USER_UID}}
MAYAN_USER_GID=${MAYAN_USER_GID:-${DEFAULT_USER_GID}}
update_uid_gid() {
echo "mayan: update_uid_gid()"
groupmod mayan -g ${MAYAN_USER_GID} 2>/dev/null || true
usermod mayan -u ${MAYAN_USER_UID} -g ${MAYAN_USER_GID} 2>/dev/null
chown -R mayan:mayan /in /out
@@ -15,4 +14,4 @@ update_uid_gid() {
update_uid_gid
su mayan -c python -u /script.py
su mayan -c "python -u /script.py"