summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authormichael pereira2011-04-27 14:33:15 +0200
committermichael pereira2011-04-27 14:33:15 +0200
commit1b9072397a7f6ea331b27e679ae53984d6361ae3 (patch)
treed9dffa3323fda6264126e79eaef585a549b93fc2 /application/controllers
parentuser (diff)
downloadpbs2-1b9072397a7f6ea331b27e679ae53984d6361ae3.tar.gz
pbs2-1b9072397a7f6ea331b27e679ae53984d6361ae3.tar.xz
pbs2-1b9072397a7f6ea331b27e679ae53984d6361ae3.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 0bb5d3a..798c5cf 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[1]->getLogin() == 'kiosk' && $bootosuser[0]->getLogin() == '%username%')
+ if($anzUsers == 2 && $bootosuser[0]->getLogin() == 'kiosk' && $bootosuser[1]->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%')