update upstream to 9084a3cbc0a55422beea4a55b530c1f03a910617 feb 2024
[automated-distro-installer] / fai / config / scripts / DEMO / 10-misc
index d77c048514f3971b377f91ba45771f6d484e42f6..ed2a810016a9f24d2e2d988fac10167cf8367732 100755 (executable)
@@ -17,7 +17,7 @@ fi
 # add additional user account
 if [ -n "$username" ]; then
     if ! $ROOTCMD getent passwd $username ; then
-       $ROOTCMD adduser --disabled-login --gecos "$username user" $username
+       $ROOTCMD adduser --disabled-password --gecos "$username user" $username
        $ROOTCMD usermod -p "$USERPW" $username
        userdir=$($ROOTCMD getent passwd "$username" | cut -d: -f6 )
 
@@ -28,7 +28,7 @@ if [ -n "$username" ]; then
                $ROOTCMD mkdir -p $xfdir
                $ROOTCMD cp /etc/xdg/xfce4/panel/default.xml $xfdir/xfce4-panel.xml
                # group name is the same as user name
-               $ROOTCMD chown -R $username.$username $userdir/.config
+               $ROOTCMD chown -R $username:$username $userdir/.config
            fi
        fi