Skip to content

Commit

Permalink
adding customization directory to init container sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
evilgn0me committed Apr 29, 2024
1 parent 793b3ff commit ae3f141
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/supportpal/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: supportpal
description: A Helm chart for Kubernetes
description: Unofficial helm chart for supportpal - powerful self-hosted, on-premise help desk software.

# A chart can be either an 'application' or a 'library' chart.
#
Expand All @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.5
version: 0.1.6

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
10 changes: 10 additions & 0 deletions charts/supportpal/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ spec:
rsync -av --ignore-errors /var/www/supportpal/addons/* /mnt/addons/; \
fi; \
fi; \
if [ -d /customization/ ]; then \
if command -v sudo >/dev/null 2>&1; then \
sudo rsync -av --ignore-errors /customization/* /mnt/customization/; \
else \
rsync -av --ignore-errors /customization/* /mnt/customization/; \
fi; \
fi; \
if [ ! -d /mnt/log/apache2 ]; then \
if command -v sudo >/dev/null 2>&1; then \
sudo mkdir -p /mnt/log/apache2; \
Expand All @@ -81,6 +88,9 @@ spec:
- name: {{ include "supportpal.fullname" . }}
mountPath: /mnt/log/
subPath: supportpal_logs
- name: {{ include "supportpal.fullname" . }}
mountPath: /mnt/customization/
subPath: supportpal_customization
{{- end }}
containers:
- name: {{ .Chart.Name }}
Expand Down

0 comments on commit ae3f141

Please sign in to comment.