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
@@ -0,0 +1,6 @@
+#!/bin/sh -eu
+tool=$(readlink -e "${0%/*}/..")
+. "$tool"/local/lib.sh
+
+getent passwd "$user" >/dev/null ||
+sudo adduser "$@" "$user"