%post Question?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

 

Hello All –

 

I have the following %post section stated in the ks.cfg file. But after the first line, nothing else takes place. I get a “zero” length file /root/post.install.log

after the client is installed. Please help me identify on what am I missing.

 

 

thanks!

--Asim;

 

 

%post

exec > /root/post.install.log 2>&1

tail -f /root/post.install.log > /dev/tty6 &

echo Entering the kickstart post-install ...

 

/sbin/service portmap start

 

 

mkdir -p /postconfig

mount -o nolock 135.1.211.237:/var/ks /postconfig

 

 

cp /postconfig/files/resolv.conf                /etc/resolv.conf

cp /etc/ntp.conf               /etc/ntp.conf.orig

cp /postconfig/files/ntp.conf     /etc/ntp.conf

cp /postconfig/files/sudoers_nagios /etc/sudoers

 

/sbin/chkconfig --level 2345 sendmail off

/sbin/chkconfig --level 2345 cups off

/sbin/chkconfig --level 2345 lpd off

 

/sbin/chkconfig --level 345 ntpd on

/sbin/service ntpd restart

 

# Creating User Accounts

/usr/sbin/groupadd -g 502 bklemm

/usr/sbin/useradd -p '$1$oy68ArIp$ROVmhozbqRzjm4SNj2wle.'-u 502 -g 502 -c "Brian Klemm" -m -d /home/bklemm -s /bin/bash bklemm

/usr/sbin/groupadd -g 503 cbwinton

/usr/sbin/useradd -p '$1$oy68ArIp$ROVmhozbqRzjm4SNj2wle.'-u 503 -g 503 -c "Craig Winton" -m -d /home/cbwinton -s /bin/bash cbwinton

/usr/sbin/groupadd -g 778 jkrueger

/usr/sbin/useradd -p '$1$oy68ArIp$ROVmhozbqRzjm4SNj2wle.'-u 778 -g 778 -c "Joerg Krueger" -m -d /home/jkrueger -s /bin/bash jkrueger

/usr/sbin/groupadd -g 779 fkerpa

/usr/sbin/useradd -p '$1$oy68ArIp$ROVmhozbqRzjm4SNj2wle.'-u 779 -g 779 -c "Fred Kerpa" -m -d /home/fkerpa -s /bin/bash fkerpa

/usr/sbin/groupadd -g 780 clysholm

/usr/sbin/useradd -p '$1$oy68ArIp$ROVmhozbqRzjm4SNj2wle.'-u 780 -g 780 -c "Chuck Lyshom" -m -d /home/clysholm -s /bin/bash clysholm

/usr/sbin/groupadd -g 781 rdyer

/usr/sbin/useradd -p '$1$oy68ArIp$ROVmhozbqRzjm4SNj2wle.'-u 781 -g 781 -c "Randy Dyer" -m -d /home/rdyer -s /bin/bash rdyer

/usr/sbin/groupadd -g 782 slezak

/usr/sbin/useradd -p '$1$oy68ArIp$ROVmhozbqRzjm4SNj2wle.'-u 782 -g 782 -c "Randy Slezak" -m -d /home/slezak -s /bin/bash slezak

/usr/sbin/groupadd -g 177 opcgrp

/usr/sbin/useradd -p '$1$oy68ArIp$ROVmhozbqRzjm4SNj2wle.'-u 777 -g 177 -c "William L'Hotta" -m -d /home/opc_op -s /bin/ksh opc_op

 

 

cd /

umount /postconfig

 

################ End

echo "End of KS post.  Reboot ..."

################################################################

%end

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux