I_DIR=$INSTALL_ROOT/usr/share/$SPELL  &&

install  -d  -m  755  $I_DIR          &&
cp  -a  *  $I_DIR                     &&
chown  -R  www-data.www-data  $I_DIR  &&

if  [  "$ZEN_CART_CREATEDB"  =  "y"  ];  then
  if  [  "$ZEN_CART_MYSQL"  =  "y"  ];  then
    message  "${MESSAGE_COLOR}Creating MySQL database...${DEFAULT_COLOR}"
    mysqladmin  create  zencart  ||  true
  fi  &&

  if  [  "$ZEN_CART_PGSQL"  =  "y"  ];  then
    message  "${MESSAGE_COLOR}Creating PostgreSQL database...${DEFAULT_COLOR}"
    source  /etc/sysconfig/postgresql  &&
    su  $USER  -c  "createdb  zencart"  ||  true
  fi
fi
