Merge "Update permission of horizon logs"

This commit is contained in:
Zuul 2025-02-03 18:41:22 +00:00 committed by Gerrit Code Review
commit 90de4baaf2

View File

@ -31,6 +31,7 @@ APPLIEDDIR="/opt/branding/applied"
TMPUPLOADDIR="/scratch/horizon"
source /usr/bin/tsconfig
umask 027
start()
{
@ -97,6 +98,10 @@ start()
# As part of starting horizon we should kill containerized horizon so that it
# will pickup branding changes
kubectl --kubeconfig=/etc/kubernetes/admin.conf delete pods -n openstack -l application=horizon 1>/dev/null
#restrict log file permissions
chmod 640 /var/log/horizon/horizon.log
chmod 640 /var/log/horizon/gunicorn.log
}
stop()