default_install  &&

# Install configuration files
install -d -m 0755 "${INSTALL_ROOT}"/etc/cgconfig.d/  &&
install_config_file  "${SOURCE_DIRECTORY}"/samples/cgrules.conf  \
  "${INSTALL_ROOT}"/etc/cgrules.conf                             &&

install_config_file  "${SOURCE_DIRECTORY}"/samples/cgconfig.conf  \
  "${INSTALL_ROOT}"/etc/cgconfig.conf                             &&

install_config_file  "${SOURCE_DIRECTORY}"/samples/cgsnapshot_blacklist.conf  \
  "${INSTALL_ROOT}"/etc/cgsnapshot_blacklist.conf                             &&

install_config_file  "${SCRIPT_DIRECTORY}"/conf/cgconfig.conf  \
  "${INSTALL_ROOT}"/etc/cgconfig.conf                          &&

# Install SysConfig files as Sorcery doesn't seem to want to pick up the init.d/*.conf files
for SYSCONF in cgconfig cgred; do
  install_config_file  "${SPELL_DIRECTORY}"/init.d/${SYSCONF}.conf  \
    "${INSTALL_ROOT}"/etc/sysconfig/${SYSCONF}
done
