mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-03 15:51:33 +01:00
Now all invocations have following order of arguments (if present):
addgroup -S -g ... GROUP
adduser -S -u ... -D -H -h ... -s ... -G ... -g ... USER
10 lines
188 B
Bash
10 lines
188 B
Bash
#!/bin/sh
|
|
|
|
addgroup -S oneadmin 2>/dev/null
|
|
adduser -S -D -H \
|
|
-s /bin/ash -h /var/lib/one -G oneadmin \
|
|
-g "OpenNebula user" oneadmin 2>/dev/null
|
|
passwd -u oneadmin 2>/dev/null
|
|
|
|
exit 0
|