Skip to content

Commit

Permalink
Merge pull request #13277 from jbradberry/psql-pager
Browse files Browse the repository at this point in the history
Configure dbshell to use the 'less' pager
  • Loading branch information
jbradberry authored Dec 2, 2022
2 parents 9637aad + 57430af commit bb047ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/ansible/roles/dockerfile/templates/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ RUN for dir in \
/var/lib/shared/vfs-layers/layers.lock \
/var/run/nginx.pid \
/var/lib/awx/venv/awx/lib/python3.9/site-packages/awx.egg-link ; \
do touch $file ; chmod g+rw $file ; done
do touch $file ; chmod g+rw $file ; done && \
echo "\setenv PAGER 'less -S'" > /var/lib/awx/.psqlrc
{% endif %}

{% if not build_dev|bool %}
Expand Down

0 comments on commit bb047ba

Please sign in to comment.