passwd-fix

This commit is contained in:
simono41 2018-04-18 00:01:10 +02:00
parent a3bb20af75
commit 693cb40426

View file

@ -753,9 +753,6 @@ function abfrage() {
m2ssddevice=y m2ssddevice=y
fi fi
read -p "Which password should you receive ?: user1 " pass
[[ -z "${pass}" ]] && pass=user1
read -p "Which file system should be used? [BTRFS/ext4] " dateisystem read -p "Which file system should be used? [BTRFS/ext4] " dateisystem
[[ -z "${dateisystem}" ]] && dateisystem=btrfs [[ -z "${dateisystem}" ]] && dateisystem=btrfs
@ -1111,14 +1108,10 @@ fi
# benutzerwechsel # benutzerwechsel
if [ "${name}" != "noinstall" ]; then if [ "${name}" != "noinstall" ]; then
arch-chroot ${mountpoint} <<EOT #arch-chroot ${mountpoint} usermod -l "${name}" user1
#usermod -l "${name}" user1 #arch-chroot ${mountpoint} usermod -d /home/"${name}" -m "${name}"
#usermod -d /home/"${name}" -m "${name}" arch-chroot ${mountpoint} chfn -f "${name}" user1
chfn -f "${name}" user1 arch-chroot ${mountpoint} passwd user1
passwd user1
${pass}
${pass}
EOT
fi fi
if [ "${update}" != "n" ] && [ "${offline}" == "n" ] || [ "${installationfehler}" == "online" ]; then if [ "${update}" != "n" ] && [ "${offline}" == "n" ] || [ "${installationfehler}" == "online" ]; then