Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
SSH Jump Host
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Charts
SSH Jump Host
Commits
b52aa4c1
Commit
b52aa4c1
authored
1 week ago
by
Andri Joos
Browse files
Options
Downloads
Patches
Plain Diff
fix key copying
parent
ce95b3d8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#7814
passed with stages
Stage:
Stage:
in 37 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ssh-jump-host/values/init-configmap.yaml
+9
-6
9 additions, 6 deletions
ssh-jump-host/values/init-configmap.yaml
with
9 additions
and
6 deletions
ssh-jump-host/values/init-configmap.yaml
+
9
−
6
View file @
b52aa4c1
...
...
@@ -8,12 +8,15 @@ data:
user_keys_secret_dir="$3"
user_keys_dir="$4"
if find $host_keys_secret_dir -mindepth 1 -maxdepth 1 | read; then
cp $host_keys_secret_dir/* $host_keys_dir
chmod 600 $host_keys_dir/*
if [ "$(ls $host_keys_secret_dir)" ]; then
cp -L "$host_keys_secret_dir/*" "$host_keys_dir"
chmod 600 "$host_keys_dir/*"
else
echo "Host keys are empty!"
fi
if find "$user_keys_secret_dir" -mindepth 1 -maxdepth 1 | read; then
cp $user_keys_secret_dir/* $user_keys_dir
if [ "$(ls $user_keys_secret_dir)" ]; then
cp -L "$user_keys_secret_dir/*" "$user_keys_dir"
else
echo "User keys are empty."
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment