From 278bffa7ee8b25cbc7c82711d44e1f7946fbe95d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Oct 2017 16:00:51 +0100 Subject: [PATCH] Local user may not exist --- src/freedombone-image-customise | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 6b5e4bca..039d7aa1 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -610,7 +610,7 @@ EOF echo "Icon=/etc/patchwork/icon_patchwork.png" >> $rootdir/home/$MY_USERNAME/Desktop/social.desktop echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/social.desktop chmod +x $rootdir/home/$MY_USERNAME/Desktop/social.desktop - chown $MY_USERNAME:$MY_USERNAME $rootdir/home/$MY_USERNAME/Desktop/social.desktop + chroot "$rootdir" chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop/social.desktop fi } @@ -659,7 +659,7 @@ EOF echo "Icon=/etc/patchwork/icon_ferment.png" >> $rootdir/home/$MY_USERNAME/Desktop/audio.desktop echo 'StartupNotify=true' >> $rootdir/home/$MY_USERNAME/Desktop/audio.desktop chmod +x $rootdir/home/$MY_USERNAME/Desktop/audio.desktop - chown $MY_USERNAME:$MY_USERNAME $rootdir/home/$MY_USERNAME/Desktop/audio.desktop + chroot "$rootdir" chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/Desktop/audio.desktop fi }