forked from mir/linux-vm-tools
Remove sudo and added root check for 16.04 config user
This commit is contained in:
parent
4b0cee52ea
commit
19f8d740b4
@ -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 &
|
||||||
|
Loading…
x
Reference in New Issue
Block a user