#!/bin/sh
#
# dcp2000/apache2 package post installation script
#

# Took from dcp2000_web_gui-X.Y.Z.pkg
. $PACKAGE_PATH/package/functions.sh
. ${PKGLIB_SH}

#
# Configure the groups
#
# print_msg "Configuring www-data groups ..."
if ! groups www-data 2> /dev/null | grep -q admin; then
  if ! usermod -G admin www-data > /dev/null 2>&1; then
    die "Failed to configure www-data groups"
  fi
fi
# print_success

# 
# install_file()
#  Hijack functions.sh call to install_file() 
#  (not needed here)
#
install_file()
{
  echo $* > /dev/null 2>&1
}
 
update_apache2
update_php
update_other_tools_if_needed
