]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Provision: check for .custom/xsession
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 12 Mar 2017 21:28:21 +0000 (18:28 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 12 Mar 2017 21:28:21 +0000 (18:28 -0300)
provision/desktop-basic

index dcff04a67b384d06e892936c73646f2cbb63cf07..69636b79442094d2a3bf77d8e8dd531350e94b5a 100755 (executable)
@@ -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