Skip to content

Commit 87b6a64

Browse files
authored
Merge pull request #778 from phuslu/patch-1
Use "exec python3" in docker-entrypoint.sh
2 parents 923bc98 + a9894a4 commit 87b6a64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ if [ `id -u` -eq 0 ] && [ `id -g` -eq 0 ]; then
1212
echo "Changing ownership of download and state directories to ${UID}:${GID}"
1313
chown -R "${UID}":"${GID}" /app "${DOWNLOAD_DIR}" "${STATE_DIR}" "${TEMP_DIR}"
1414
echo "Running MeTube as user ${UID}:${GID}"
15-
su-exec "${UID}":"${GID}" python3 app/main.py
15+
exec su-exec "${UID}":"${GID}" python3 app/main.py
1616
else
1717
echo "User set by docker; running MeTube as `id -u`:`id -g`"
18-
python3 app/main.py
18+
exec python3 app/main.py
1919
fi

0 commit comments

Comments
 (0)