Add chown if second disk is attached

This commit is contained in:
rockstable 2022-12-11 20:40:29 +01:00
parent ddc2cd03a6
commit ad536249cf
1 changed files with 7 additions and 5 deletions

View File

@ -1,13 +1,15 @@
#!/bin/bash
#$ROOTCMD apt update -y
#$ROOTCMD apt upgrade -y
if [ "xSUPRESS_GNOME_INITIAL_SCREEN" = "x1" ] ; then
$ROOTCMD tee /home/demo/.config/gnome-initial-setup-done <<EOF
$ROOTCMD tee /home/demo/.config/gnome-initial-setup-done <<EOF
yes
EOF
$ROOTCMD chown -Rc $username:$username /home/$username
$ROOTCMD chown -Rc "$username:$username" "/home/$username"
fi
if ifclass HW4F_DESKTOP_DISK2 \
&& [ $diskcount > 1 ]; then
$ROOTCMD chown -Rc "$username:$username" /media/zusatz
fi