Local user may not exist

This commit is contained in:
Bob Mottram 2017-10-01 16:00:51 +01:00
parent 399af60ccc
commit 278bffa7ee
1 changed files with 2 additions and 2 deletions

View File

@ -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
}