aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-12 18:28:21 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-12 18:28:21 -0300
commit0f7507a977ad2d8819bb8a797a7b4c36e0341063 (patch)
treedb380585138b5ded666d7faee085d1a43d517b90
parent602bd47eef4be672ee21a24e686d1e51d4f09433 (diff)
downloadkvmx-0f7507a977ad2d8819bb8a797a7b4c36e0341063.tar.gz
kvmx-0f7507a977ad2d8819bb8a797a7b4c36e0341063.tar.bz2
Provision: check for .custom/xsession
-rwxr-xr-xprovision/desktop-basic5
1 files changed, 5 insertions, 0 deletions
diff --git a/provision/desktop-basic b/provision/desktop-basic
index dcff04a..69636b7 100755
--- a/provision/desktop-basic
+++ b/provision/desktop-basic
@@ -26,6 +26,9 @@ DOMAIN="$2"
MIRROR="$3"
APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y"
+# Ensure we are in the user home folder
+cd
+
# Configure keyboard
cat <<-EOF | sudo tee /etc/default/keyboard > /dev/null
# KEYBOARD CONFIGURATION FILE
@@ -63,6 +66,7 @@ sudo cp $DIRNAME/files/desktop-basic/etc/lightdm/lightdm.conf /etc/lightdm/light
mkdir -p .custom
+if [ ! -e ".custom/xsession" ]; then
cat <<-EOF | tee .custom/xsession > /dev/null
#
# Custom X11 session config
@@ -87,6 +91,7 @@ xrandr --addmode Virtual-0 1368x748_60.00
#xrandr --output Virtual-0 --mode 1368x748_60.00
xrandr --output Virtual-0 --mode 1280x780_60.00
EOF
+fi
# Mozilla configuration
if [ ! -d ".mozilla" ]; then