mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
set break
This commit is contained in:
parent
69cd60b74f
commit
215fbc2ae9
1 changed files with 11 additions and 11 deletions
|
@ -146,25 +146,25 @@ _user_management() {
|
|||
_PACKAGES="bash-completion"
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " \
|
||||
--gauge "Installing package(s):\n${_PACKAGES}..." 7 75 0
|
||||
_pacman_error && break
|
||||
_pacman_error
|
||||
fi ;;
|
||||
"ZSH") _SHELL="zsh"
|
||||
if ! [[ -f "${_DESTDIR}/usr/bin/zsh" ]]; then
|
||||
_PACKAGES="grml-zsh-config"
|
||||
_run_pacman | _dialog --title " Logging to ${_VC} | ${_LOG} " \
|
||||
--gauge "Installing package(s):\n${_PACKAGES}..." 7 75 0
|
||||
_pacman_error && break
|
||||
_pacman_error
|
||||
fi ;;
|
||||
esac
|
||||
done
|
||||
# change default shell for root and all users >= UID 1000
|
||||
sed -i -e "s#^SHELL=.*#SHELL=/usr/bin/${_SHELL}#g" "${_DESTDIR}"/etc/default/useradd
|
||||
for i in root $(grep 'x:10[0-9][0-9]' "${_DESTDIR}"/etc/passwd | cut -d : -f 1); do
|
||||
usermod -R "${_DESTDIR}" -s "/usr/bin/${_SHELL}" "${i}" &>"${_LOG}"
|
||||
done
|
||||
_dialog --title " Success " --no-mouse --infobox "Default shell set to ${_SHELL}." 3 50
|
||||
sleep 3
|
||||
_NEXTITEM="2" ;;
|
||||
# change default shell for root and all users >= UID 1000
|
||||
sed -i -e "s#^SHELL=.*#SHELL=/usr/bin/${_SHELL}#g" "${_DESTDIR}"/etc/default/useradd
|
||||
for i in root $(grep 'x:10[0-9][0-9]' "${_DESTDIR}"/etc/passwd | cut -d : -f 1); do
|
||||
usermod -R "${_DESTDIR}" -s "/usr/bin/${_SHELL}" "${i}" &>"${_LOG}"
|
||||
done
|
||||
_dialog --title " Success " --no-mouse --infobox "Default shell set to ${_SHELL}." 3 50
|
||||
sleep 3
|
||||
_NEXTITEM="2"
|
||||
done ;;
|
||||
"2") while true; do
|
||||
_set_user || break
|
||||
if grep -q "^${_USER}:" "${_DESTDIR}"/etc/passwd; then
|
||||
|
|
Loading…
Reference in a new issue