4 if [ -z "${vdir}" ] ; then
6 echo "Provide the directory of the root filesystem to operate on"
10 # NOTE: we're enabling util-vserver to allow it to help shutdown all slices
11 # before rebooting. This has been problematic in the past.
12 # Thierry : I'm enabling network since, for some reason, it ends up turned off on fedora9
13 for service in network util-vserver; do
14 chroot ${vdir} /sbin/chkconfig $service on
17 # Remove unneeded services
18 for service in vprocunhide vservers-default fprobe-ulog; do
19 chroot ${vdir} /sbin/chkconfig $service off
22 # Disable splaying of cron.
23 echo > ${vdir}/etc/sysconfig/crontab
25 # Add site_admin account
26 chroot ${vdir} /usr/sbin/useradd -p "" -u 502 -m site_admin