2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-09-19 10:39:02 +00:00

fix: allow user process to create logs

allow user process to create logs in worker images
This commit is contained in:
Revant Nandgaonkar 2020-03-02 16:01:35 +05:30
parent 9adaee274f
commit 07bcaec723

View File

@ -59,6 +59,9 @@ if [[ ! -e /home/frappe/frappe-bench/sites/apps.txt ]]; then
find /home/frappe/frappe-bench/apps -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | sort -r > /home/frappe/frappe-bench/sites/apps.txt
fi
# Allow user process to create files in logs directory
chown -R frappe:frappe /home/frappe/frappe-bench/logs
if [ "$1" = 'start' ]; then
configureEnv
checkConnection