Add shell to new huhu mod users.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
8259e05504
commit
6032e3984a
2 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
huhu 0.11.0 (unreleased)
|
huhu 0.11.0 (unreleased)
|
||||||
* Re-order and add metadata files (TODO, ChangeLog, ...).
|
* Re-order and add metadata files (TODO, ChangeLog, ...).
|
||||||
* Update to current Debian version.
|
* Update to current Debian version.
|
||||||
|
* Add shell to new huhu mod users.
|
||||||
|
|
||||||
huhu 0.10 (unknown)
|
huhu 0.10 (unknown)
|
||||||
* huhu reports version 0.09 (from MOD/Displaylib.pm), but has code
|
* huhu reports version 0.09 (from MOD/Displaylib.pm), but has code
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ fi
|
||||||
user_home="${HUHU_HOME_BASE_DIR:-/home}/"$( echo "${user_name}" | sed 's#[-.]#/#g' )
|
user_home="${HUHU_HOME_BASE_DIR:-/home}/"$( echo "${user_name}" | sed 's#[-.]#/#g' )
|
||||||
user_home_parent="${user_home%/*}"
|
user_home_parent="${user_home%/*}"
|
||||||
[ -d "${user_home_parent}" ] || mkdir -p "${user_home_parent}"
|
[ -d "${user_home_parent}" ] || mkdir -p "${user_home_parent}"
|
||||||
useradd --home "${user_home}" --create-home --skel "${skel_dir}" "${user_name}"
|
useradd --home "${user_home}" --shell /bin/bash --create-home --skel "${skel_dir}" "${user_name}"
|
||||||
|
|
||||||
user_home=$( awk -F: "/^${user_name}:/ { print \$6 }" /etc/passwd )
|
user_home=$( awk -F: "/^${user_name}:/ { print \$6 }" /etc/passwd )
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue