]> git.donarmstrong.com Git - neurodebian.git/commitdiff
BF: do not exit non-0 if lightdm.conf is not present (squeeze VM)
authorYaroslav Halchenko <debian@onerussian.com>
Wed, 19 Dec 2012 15:42:44 +0000 (10:42 -0500)
committerYaroslav Halchenko <debian@onerussian.com>
Wed, 19 Dec 2012 15:42:44 +0000 (10:42 -0500)
debian/neurodebian-guest-additions.postinst

index a714ea0f091a88be159efe2bb34d5210dd31680a..760b0a81e0229ae007ad7204b7bfe5c19b75a38d 100755 (executable)
@@ -29,10 +29,10 @@ _set_lightdm_auto_login() {
 gdm_conf=/etc/gdm/gdm.conf
 if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then
 
-       [ -e /etc/gdm/gdm.conf ] && _set_gdm_auto_login /etc/gdm/gdm.conf 2
-    [ -e /etc/gdm3/daemon.conf ] && _set_gdm_auto_login /etc/gdm3/daemon.conf 3
+       [ -e /etc/gdm/gdm.conf ] && _set_gdm_auto_login /etc/gdm/gdm.conf 2 || :
+    [ -e /etc/gdm3/daemon.conf ] && _set_gdm_auto_login /etc/gdm3/daemon.conf 3 || :
 
-       [ -e /etc/lightdm/lightdm.conf ] && _set_lightdm_auto_login /etc/lightdm/lightdm.conf
+       [ -e /etc/lightdm/lightdm.conf ] && _set_lightdm_auto_login /etc/lightdm/lightdm.conf || :
 fi
 
 #DEBHELPER#