mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
... but use it in the same pod. It seems to be possible to have shared volumes in the same pod: https://kubernetes.io/docs/tasks/access-application-cluster/communicate-containers-same-pod-shared-volume/
13 lines
267 B
Bash
Executable File
13 lines
267 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
for var in "SSH_USERNAME" "SSH_HOST" "UPLOADS_DIRECTORY"
|
|
do
|
|
if [[ -z "${!var}" ]]; then
|
|
echo "${var} is undefined"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
rsync --archive --update --verbose ${SSH_USERNAME}@${SSH_HOST}:${UPLOADS_DIRECTORY}/* /uploads/
|