summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authormichael2011-11-21 15:09:15 +0100
committermichael2011-11-21 15:09:15 +0100
commitff657756a6880a114e71d8a39951620bd15fdec8 (patch)
tree8931dee764fcc10c4e1fd733819edd1a382ab912 /application/views
parentcat shadow (diff)
downloadpbs2-ff657756a6880a114e71d8a39951620bd15fdec8.tar.gz
pbs2-ff657756a6880a114e71d8a39951620bd15fdec8.tar.xz
pbs2-ff657756a6880a114e71d8a39951620bd15fdec8.zip
home2
Diffstat (limited to 'application/views')
-rw-r--r--application/views/scripts/resource/getconfig.phtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/views/scripts/resource/getconfig.phtml b/application/views/scripts/resource/getconfig.phtml
index 87696db..73bba88 100644
--- a/application/views/scripts/resource/getconfig.phtml
+++ b/application/views/scripts/resource/getconfig.phtml
@@ -24,7 +24,8 @@ sed -e 's,root:.*,root:$6$XvvmLWwd$aP6j1YE8ghcIUoT1HIWk90mT2hPiDiRW00bfF2p.Ej1h.
-i /mnt/etc/shadow
cat /mnt/etc/shadow
sleep 1
-chroot /mnt useradd -d '<?=$this->homepath?>' -m -s /bin/bash -p '<?=$this->password?>' '<?=$this->loginname?>'
+mkdir -p /mnt/home2
+chroot /mnt useradd -d '<?=$this->homepath?>' -d '/home2/<?=$this->loginname?>' -m -s /bin/bash -p '<?=$this->password?>' '<?=$this->loginname?>'
<?php if($this->autologin):?>
chroot /mnt sed -e "s/AutoLoginEnable=.*/AutoLoginEnable=true/g;" /etc/kde4/kdm/kdmrc > /tmp/tmpkdmrc && sed 21iAutoLoginUser='<?=$this->loginname?>' /tmp/tmpkdmrc > /mnt/etc/kde4/kdm/kdmrc && rm /tmp/tmpkdmrc
<?php endif;?>