Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alberta3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ians-nmh-siebert
alberta
alberta3
Commits
21e91024
Commit
21e91024
authored
18 years ago
by
Claus-Justus Heine
Browse files
Options
Downloads
Patches
Plain Diff
Use SSH_AGENT_PID if set, otherwise try to use a matching socket from /tmp
parent
8777288b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mksnap.sh
+2
-2
2 additions, 2 deletions
mksnap.sh
with
2 additions
and
2 deletions
mksnap.sh
+
2
−
2
View file @
21e91024
...
@@ -11,8 +11,8 @@ SNAPSHOTDIR=/hosts/www/www/htdocs/IAM/homepages/claus/download/alberta/snapshots
...
@@ -11,8 +11,8 @@ SNAPSHOTDIR=/hosts/www/www/htdocs/IAM/homepages/claus/download/alberta/snapshots
NSNAPSHOTS
=
10
# keep only the most recent 10 snapshots
NSNAPSHOTS
=
10
# keep only the most recent 10 snapshots
# Pray that we have a running ssh-agent (and only one ...)
# Pray that we have a running ssh-agent (and only one ...)
SSH_AGENT_PID
=
`
ps
-u
claus |grep ssh-agent|awk
'{ print $1; }'
`
:
${
SSH_AGENT_PID
=
`
ps
-u
claus |grep ssh-agent|awk
'{ print $1; }'
`
}
SSH_AUTH_SOCK
=
`
find /tmp
-user
claus
-name
"agent.[0-9]*"
`
:
${
SSH_AUTH_SOCK
=
`
find /tmp
-user
claus
-name
"agent.[0-9]*"
`
}
export
SSH_AGENT_PID SSH_AUTH_SOCK
export
SSH_AGENT_PID SSH_AUTH_SOCK
if
test
-z
"
${
SSH_AGENT_PID
}
"
-o
-z
"
${
SSH_AUTH_SOCK
}
"
;
then
if
test
-z
"
${
SSH_AGENT_PID
}
"
-o
-z
"
${
SSH_AUTH_SOCK
}
"
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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