Merge pull request #778 from phuslu/patch-1
Use "exec python3" in docker-entrypoint.sh
This commit is contained in:
commit
87b6a6412c
|
|
@ -12,8 +12,8 @@ if [ `id -u` -eq 0 ] && [ `id -g` -eq 0 ]; then
|
||||||
echo "Changing ownership of download and state directories to ${UID}:${GID}"
|
echo "Changing ownership of download and state directories to ${UID}:${GID}"
|
||||||
chown -R "${UID}":"${GID}" /app "${DOWNLOAD_DIR}" "${STATE_DIR}" "${TEMP_DIR}"
|
chown -R "${UID}":"${GID}" /app "${DOWNLOAD_DIR}" "${STATE_DIR}" "${TEMP_DIR}"
|
||||||
echo "Running MeTube as user ${UID}:${GID}"
|
echo "Running MeTube as user ${UID}:${GID}"
|
||||||
su-exec "${UID}":"${GID}" python3 app/main.py
|
exec su-exec "${UID}":"${GID}" python3 app/main.py
|
||||||
else
|
else
|
||||||
echo "User set by docker; running MeTube as `id -u`:`id -g`"
|
echo "User set by docker; running MeTube as `id -u`:`id -g`"
|
||||||
python3 app/main.py
|
exec python3 app/main.py
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue