Skip to content

Commit 3ef48f4

Browse files
authored
Merge pull request #148 from cloud-gov/fix-kibana-platform-pre-start
fix pre-start script to check for directory before chown
2 parents fd6c9b8 + 988ba0b commit 3ef48f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jobs/kibana-platform/templates/bin/pre-start.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ if ! [[ $(ls -1 /var/vcap/packages/kibana-platform/plugins | wc -l) == 0 ]]; the
55
fi
66

77
cd /var/vcap/packages/kibana-platform
8-
chown -R vcap:vcap optimize config data plugins
8+
chown -R vcap:vcap config data plugins
9+
10+
if [[ -d optimize ]]; then
11+
chown -R vcap:vcap optimize
12+
fi

0 commit comments

Comments
 (0)