summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authormichael pereira2011-04-27 14:20:20 +0200
committermichael pereira2011-04-27 14:20:20 +0200
commitc8a8910d2e10715616c9768fc0f46ca089fc7e80 (patch)
treef57e57449ca358009076f5a30b572f211e9fbd93 /application/controllers
parentuser (diff)
downloadpbs2-c8a8910d2e10715616c9768fc0f46ca089fc7e80.tar.gz
pbs2-c8a8910d2e10715616c9768fc0f46ca089fc7e80.tar.xz
pbs2-c8a8910d2e10715616c9768fc0f46ca089fc7e80.zip
user
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/ResourceController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index 798c5cf..0bb5d3a 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -444,7 +444,7 @@ class ResourceController extends Zend_Controller_Action
}
else{
exec("echo 'chroot /mnt useradd -d '".escapeshellarg("'".$homepath."'")."' -m -s /bin/bash -p '".escapeshellarg("'".$password."'")."' '".escapeshellarg("'".$loginname."'")."'' >> $tmp_conf/initramfs/postinit.local",$restul);
- if($anzUsers == 2 && $bootosuser[0]->getLogin() == 'kiosk' && $bootosuser[1]->getLogin() == '%username%')
+ if($anzUsers == 2 && $bootosuser[1]->getLogin() == 'kiosk' && $bootosuser[0]->getLogin() == '%username%')
exec("echo 'chroot /mnt sed -e \"s/AutoLoginEnable=.*/AutoLoginEnable=true/g;\" /etc/kde4/kdm/kdmrc > /tmp/tmpkdmrc && sed 21iAutoLoginUser=kiosk /tmp/tmpkdmrc > /mnt/etc/kde4/kdm/kdmrc && rm /tmp/tmpkdmrc' >> $tmp_conf/initramfs/postinit.local");
if($anzUsers == 2 && $user->getLogin() == '%username%')