From 87010ae3d4c5c88cffe3f73d99206b4e252ece3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Sat, 23 Jul 2016 00:25:33 -0300 Subject: Fix read and write permissions in $HOME folder --- .../root/.scriptsInstallation/language/en/install.sh | 7 ++++--- .../root/.scriptsInstallation/language/es/install.sh | 1 + .../root/.scriptsInstallation/language/gl/install.sh | 10 ++++++---- .../root/.scriptsInstallation/language/pt/install.sh | 1 + 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/configs/mate/root-image/root/.scriptsInstallation/language/en/install.sh b/configs/mate/root-image/root/.scriptsInstallation/language/en/install.sh index 10c0433..cfaf4a3 100755 --- a/configs/mate/root-image/root/.scriptsInstallation/language/en/install.sh +++ b/configs/mate/root-image/root/.scriptsInstallation/language/en/install.sh @@ -32,7 +32,7 @@ partition(){ case $selection in 1) - umount /mnt &> /dev/null + umount /mnt &> /dev/null #Create msdos partition table parted -s $hdd -- mklabel msdos @@ -87,7 +87,7 @@ partition(){ esac done ;; - esac + esac } @@ -206,7 +206,7 @@ while [ option != 7 ]; do pacstrap /mnt ${packages[@]} user=$(cat ~/.scriptsInstallation/temporal | grep "userName" ) - #Copie skel in the new system and desktop's background + #Copy skel in the new system and desktop's background cp -a /etc/skel/ /mnt/etc/ cp -a /etc/wallpaper.png /mnt/etc/wallpaper.png @@ -216,6 +216,7 @@ while [ option != 7 ]; do echo "startx" >> /mnt/etc/skel/.bash_profile chmod +x /mnt/etc/skel/.xinitrc cp -a /mnt/etc/skel/.[a-z]* /mnt/home/${user#*=}/ + chmod -R ${user#*=}.${user#*=} /mnt/home/${user#*=}/ cp -a ~/.scriptsInstallation/x11.sh /mnt #Enable services with systemd diff --git a/configs/mate/root-image/root/.scriptsInstallation/language/es/install.sh b/configs/mate/root-image/root/.scriptsInstallation/language/es/install.sh index 578896e..b2d99a5 100755 --- a/configs/mate/root-image/root/.scriptsInstallation/language/es/install.sh +++ b/configs/mate/root-image/root/.scriptsInstallation/language/es/install.sh @@ -216,6 +216,7 @@ while [ option != 7 ]; do echo "startx" >> /mnt/etc/skel/.bash_profile chmod +x /mnt/etc/skel/.xinitrc cp -a /mnt/etc/skel/.[a-z]* /mnt/home/${user#*=}/ + chmod -R ${user#*=}.${user#*=} /mnt/home/${user#*=}/ cp -a ~/.scriptsInstallation/x11.sh /mnt #Enable services with systemd diff --git a/configs/mate/root-image/root/.scriptsInstallation/language/gl/install.sh b/configs/mate/root-image/root/.scriptsInstallation/language/gl/install.sh index 5032283..b579fbf 100755 --- a/configs/mate/root-image/root/.scriptsInstallation/language/gl/install.sh +++ b/configs/mate/root-image/root/.scriptsInstallation/language/gl/install.sh @@ -25,7 +25,8 @@ partition(){ #And add the new line with new parameter echo "hdd=$hdd" >> ~/.scriptsInstallation/temporal - selection=$(dialog --stdout --menu "Metodo de Particionado" 20 70 50 \ + + selection=$(dialog --stdout --menu "Metodo de Particionado" 20 70 50 \ 1 "Usar todo o disco con swap (1GB) and /" \ 2 "Usar gparted para personalizar" ) @@ -86,7 +87,7 @@ partition(){ esac done ;; - esac + esac } @@ -138,7 +139,7 @@ while [ option != 7 ]; do rm -r /mnt/userAccount.sh ;; 6) - #Packages to the X11 live + #Packages to the X11 live packages=( "xorg-server" "xf86-input-evdev" "xf86-input-synaptics" @@ -208,13 +209,14 @@ while [ option != 7 ]; do #Copie skel in the new system and desktop's background cp -a /etc/skel/ /mnt/etc/ cp -a /etc/wallpaper.png /mnt/etc/wallpaper.png - + #Puts the XKBMAP, start X11 automatically and icewm desktop echo "setxkbmap $(cat ~/.codecheck | grep XKBMAP= | cut -d '=' -f 2)" > /mnt/etc/skel/.xinitrc echo "exec mate-session" >> /mnt/etc/skel/.xinitrc echo "startx" >> /mnt/etc/skel/.bash_profile chmod +x /mnt/etc/skel/.xinitrc cp -a /mnt/etc/skel/.[a-z]* /mnt/home/${user#*=}/ + chmod -R ${user#*=}.${user#*=} /mnt/home/${user#*=}/ cp -a ~/.scriptsInstallation/x11.sh /mnt #Enable services with systemd diff --git a/configs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh b/configs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh index 58470c0..bc0265d 100755 --- a/configs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh +++ b/configs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh @@ -216,6 +216,7 @@ while [ option != 7 ]; do echo "startx" >> /mnt/etc/skel/.bash_profile chmod +x /mnt/etc/skel/.xinitrc cp -a /mnt/etc/skel/.[a-z]* /mnt/home/${user#*=}/ + chmod -R ${user#*=}.${user#*=} /mnt/home/${user#*=}/ cp -a ~/.scriptsInstallation/x11.sh /mnt #Enable services with systemd -- cgit v1.2.2