Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
letsencrypt.sh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
letsencrypt.sh
Commits
78876243
Commit
78876243
authored
Jan 15, 2016
by
Lukas Schauer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #86 from petrkle/lock-dir-writable
Check if directory for LOCKFILE is writable.
parents
63ab72a5
61ba0daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
letsencrypt.sh
letsencrypt.sh
+2
-0
No files found.
letsencrypt.sh
View file @
78876243
...
...
@@ -77,6 +77,8 @@ init_system() {
load_config
# Lockfile handling (prevents concurrent access)
LOCKDIR
=
"
$(
dirname
"
${
LOCKFILE
}
"
)
"
[[
-w
"
${
LOCKDIR
}
"
]]
||
_exiterr
"Directory
${
LOCKDIR
}
for LOCKFILE
${
LOCKFILE
}
is not writable, aborting."
(
set
-C
;
date
>
"
${
LOCKFILE
}
"
)
2>/dev/null
||
_exiterr
"Lock file '
${
LOCKFILE
}
' present, aborting."
remove_lock
()
{
rm
-f
"
${
LOCKFILE
}
"
;
}
trap
'remove_lock'
EXIT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment