projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make TCP_UDP_SERVICE not be stateful
[mirror/dsa-puppet.git]
/
modules
/
roles
/
files
/
static-mirroring
/
static-master-update-component
diff --git
a/modules/roles/files/static-mirroring/static-master-update-component
b/modules/roles/files/static-mirroring/static-master-update-component
index
6f7ff03
..
f2ea116
100755
(executable)
--- a/
modules/roles/files/static-mirroring/static-master-update-component
+++ b/
modules/roles/files/static-mirroring/static-master-update-component
@@
-35,6
+35,10
@@
base=/home/staticsync/static-master/master
set -e
set -u
+if [ "`id -u`" != "`stat -c %u "$base"`" ]; then
+ echo >&2 "You are probably running this as the wrong user."
+ exit 1
+fi
lock() {
local fd="$1"; shift