0 1 0
Brett Smith (brett) - 12 months ago 2019-11-23 14:12:35
brett@sfconservancy.org
website-update: Remove lockdir code. Now that we're running as a systemd service, that will make sure only one update runs at a time.
1 file changed with 0 insertions and 7 deletions:
↑ Collapse Diff ↑
...
 
@@ -3,7 +3,6 @@
3 3
 
set -e
4 4
 
set -u
5 5
 

	
6
 
LOCKDIR="/tmp/website-update.$(id -u)"
7 6
 
SITEDIR=~/website
8 7
 
PRODUCTION_BRANCH=master
9 8
 

	
...
 
@@ -11,12 +10,6 @@ git_rev_name() {
11 10
 
    git rev-parse --abbrev-ref --symbolic-full-name "$@"
12 11
 
}
13 12
 

	
14
 
if ! mkdir "$LOCKDIR"; then
15
 
    test -d "$LOCKDIR"
16
 
    exit $?
17
 
fi
18
 
trap 'rmdir "$LOCKDIR"' 0 INT TERM QUIT
19
 

	
20 13
 
# If the checkout is not on the production branch,
21 14
 
# assume maintenance is happening and stop.
22 15
 
cd "$SITEDIR"
0 comments (0 inline, 0 general)