dépôts
/
lhc
/
ateliers.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Modification : vm_{host,hosted,remote} -> {host,local,remote}/ .
[lhc/ateliers.git]
/
local
/
adduser
diff --git a/local/adduser
b/local/adduser
new file mode 100755
(executable)
index 0000000..
08950fe
--- /dev/null
+++ b/
local/adduser
@@ -0,0
+1,6
@@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/local/lib.sh
+
+getent passwd "$user" >/dev/null ||
+sudo adduser "$@" "$user"