Programmer-RD-AI commented on code in PR #54448:
URL: https://github.com/apache/airflow/pull/54448#discussion_r2273100513
##########
airflow-core/docs/howto/docker-compose/docker-compose.yaml:
##########
@@ -274,11 +274,11 @@ services:
echo
echo "Change ownership of files in /opt/airflow to ${AIRFLOW_UID}:0"
echo
- chown -R "${AIRFLOW_UID}:0" /opt/airflow/
+ timeout 30 chown -R "${AIRFLOW_UID}:0" /opt/airflow/
Review Comment:
```suggestion
find /opt/airflow -mindepth 1 ! -user "${AIRFLOW_UID}" -print0 \
| xargs -0 -r chown "${AIRFLOW_UID}:0"
```
##########
airflow-core/docs/howto/docker-compose/docker-compose.yaml:
##########
@@ -274,11 +274,11 @@ services:
echo
echo "Change ownership of files in /opt/airflow to ${AIRFLOW_UID}:0"
echo
- chown -R "${AIRFLOW_UID}:0" /opt/airflow/
+ timeout 30 chown -R "${AIRFLOW_UID}:0" /opt/airflow/
echo
echo "Change ownership of files in shared volumes to ${AIRFLOW_UID}:0"
echo
- chown -v -R "${AIRFLOW_UID}:0" /opt/airflow/{logs,dags,plugins,config}
+ timeout 30 chown -v -R "${AIRFLOW_UID}:0"
/opt/airflow/{logs,dags,plugins,config}
Review Comment:
```suggestion
find /opt/airflow/logs /opt/airflow/dags /opt/airflow/plugins
/opt/airflow/config \
! -user "${AIRFLOW_UID}" -print0 \
| xargs -0 -r chown -v "${AIRFLOW_UID}:0"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]