mirror of
https://github.com/luzifer-docker/pvc-rsync.git
synced 2024-11-09 15:50:01 +00:00
Adjust to kubernetes secret mount format
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
cb9ec1325a
commit
200a4d1ec3
1 changed files with 4 additions and 1 deletions
|
@ -60,7 +60,10 @@ function import_ssh_dir() {
|
|||
return 1
|
||||
}
|
||||
|
||||
rsync -a "${SSH_CONFIG_MOUNT}/" ~/.ssh/
|
||||
local sync_src="${SSH_CONFIG_MOUNT}"
|
||||
[[ -e $SSH_CONFIG_MOUNT/..data ]] && sync_src="${SSH_CONFIG_MOUNT}/..data" || true
|
||||
|
||||
rsync -a "${sync_src}/" ~/.ssh/
|
||||
chown $(id -u) ~/.ssh/*
|
||||
chmod 0600 ~/.ssh/*
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue