mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-08-26 17:20:45 +02:00
Fix temp dir permissions
This commit is contained in:
parent
ec95b6a5aa
commit
a833e5b494
@ -27,7 +27,7 @@ RUN addgroup -g 101 -S telegram-bot-api \
|
|||||||
&& chmod +x /docker-entrypoint.sh \
|
&& chmod +x /docker-entrypoint.sh \
|
||||||
&& mkdir -p ${TELEGRAM_WORK_DIR} ${TELEGRAM_TEMP_DIR} \
|
&& mkdir -p ${TELEGRAM_WORK_DIR} ${TELEGRAM_TEMP_DIR} \
|
||||||
&& chown telegram-bot-api:telegram-bot-api ${TELEGRAM_WORK_DIR} ${TELEGRAM_TEMP_DIR}\
|
&& chown telegram-bot-api:telegram-bot-api ${TELEGRAM_WORK_DIR} ${TELEGRAM_TEMP_DIR}\
|
||||||
&& chmod 666 ${TELEGRAM_TEMP_DIR}
|
&& chmod 700 ${TELEGRAM_TEMP_DIR}
|
||||||
USER telegram-bot-api:telegram-bot-api
|
USER telegram-bot-api:telegram-bot-api
|
||||||
|
|
||||||
HEALTHCHECK CMD curl -f http://localhost:8082/ || exit 1
|
HEALTHCHECK CMD curl -f http://localhost:8082/ || exit 1
|
||||||
|
@ -7,7 +7,7 @@ GROUPNAME=telegram-bot-api
|
|||||||
|
|
||||||
chown ${USERNAME}:${GROUPNAME} "${TELEGRAM_WORK_DIR}" "${TELEGRAM_TEMP_DIR}"
|
chown ${USERNAME}:${GROUPNAME} "${TELEGRAM_WORK_DIR}" "${TELEGRAM_TEMP_DIR}"
|
||||||
|
|
||||||
chmod 666 "${TELEGRAM_TEMP_DIR}"
|
chmod 700 "${TELEGRAM_TEMP_DIR}"
|
||||||
|
|
||||||
if [ -n "${1}" ]; then
|
if [ -n "${1}" ]; then
|
||||||
exec "${*}"
|
exec "${*}"
|
||||||
|
Loading…
Reference in New Issue
Block a user