Skip to content

Commit

Permalink
do a check for existence of the view
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Jan 26, 2024
1 parent 289128a commit 438bf37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/flux/templates/components.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ export PATH=$PATH:${viewbin}
goshare-wait-fs -p ${viewbase}/flux-operator-done.txt {{ if .Spec.Logging.Quiet }}> /dev/null 2>&1{{ end }}

# Copy mount software to /opt/software
cp -R ${viewbase}/software /opt/software
# If /opt/software already exists, we need to copy into it
if [[ -e "/opt/software" ]]; then
cp -R ${viewbase}/software/* /opt/software/
else
cp -R ${viewbase}/software /opt/software
fi
{{end}}

{{define "paths"}}
Expand Down

0 comments on commit 438bf37

Please sign in to comment.