1
0
forked from mir/linux-vm-tools

Remove sudo and added root check for 16.04 config user

This commit is contained in:
Justin Terry (VM) 2018-03-02 09:56:26 -08:00
parent 4b0cee52ea
commit 19f8d740b4

View File

@ -7,7 +7,12 @@
# Major thanks to: http://c-nergy.be/blog/?p=10752 for the tips. # Major thanks to: http://c-nergy.be/blog/?p=10752 for the tips.
# #
sudo bash -c "cat >~/.xsession <<EOF if [ ! $(id -u) ] ; then
echo 'This script must be run with root privileges' >&2
exit 1
fi
bash -c "cat >~/.xsession <<EOF
/usr/lib/gnome-session/gnome-session-binary --session=ubuntu & /usr/lib/gnome-session/gnome-session-binary --session=ubuntu &
/usr/lib/x86_64-linux-gnu/unity/unity-panel-service & /usr/lib/x86_64-linux-gnu/unity/unity-panel-service &