Merge "Update permission of horizon logs"
This commit is contained in:
commit
90de4baaf2
@ -31,6 +31,7 @@ APPLIEDDIR="/opt/branding/applied"
|
|||||||
TMPUPLOADDIR="/scratch/horizon"
|
TMPUPLOADDIR="/scratch/horizon"
|
||||||
|
|
||||||
source /usr/bin/tsconfig
|
source /usr/bin/tsconfig
|
||||||
|
umask 027
|
||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
@ -97,6 +98,10 @@ start()
|
|||||||
# As part of starting horizon we should kill containerized horizon so that it
|
# As part of starting horizon we should kill containerized horizon so that it
|
||||||
# will pickup branding changes
|
# will pickup branding changes
|
||||||
kubectl --kubeconfig=/etc/kubernetes/admin.conf delete pods -n openstack -l application=horizon 1>/dev/null
|
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()
|
stop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user