

. .includes/build/ver.h

. .includes/fcns_ver.h

. .includes/addon_ver.h

#
#
# Standard global variables (should not require changes).
#
RC=0
PRODUCT_BRAND="FirstClass"  #default Brand name, see branding_function.sh to override
ADDON_SCRIPT="addon.inc"
FCPUTIL_NAME="fcputil"

FCSD_NAME="fcsd"
FCISD_NAME="fcisd"
FCASD_NAME="fcasd"
FCDS_NAME="fcds"
FCSD_REZ_NAME="fcsd.rez"
FCISD_REZ_NAME="fcisd.rez"
FCASD_REZ_NAME="fcasd.rez"
FCASD_FC_NAME="fcasd.fc"
FCASCTL_NAME="fcasctl"
FCDS_REZ_NAME="fcds.rez"
FCDS_FC_NAME="fcds.fc"
FCDSCTL_NAME="fcdsctl"
MY_USER="fcadmin"

FCSD_BUILD="0"
FCISD_BUILD="0"

# Set platform specific variables
if [ "`uname -s`" = "Darwin" ] ; then
	_FC_PLATFORM="Mac OS X"
	MY_FILES="$INSTALL_DIR/files"
	MY_GROUP="admin"
	SERVICE_PARENT="/Library"
	SERVICE_FOLDER="$SERVICE_PARENT/FirstClass Server"
	ARCHIVE_FOLDER="Archives"
	if [ "$FCAS_Custom_Path" = "" ]; then
		FCAS_SERVICE_FOLDER="$SERVICE_PARENT/fcas"
	else
		FCAS_SERVICE_FOLDER="$FCAS_Custom_Path"
	fi
	FCDS_SERVICE_FOLDER="$SERVICE_PARENT/fcds"
	FCDSCTL_PARENT_FOLDER="/usr/local"
	FCAS_RAD_FOLDER="FCRAD"
	FCAS_RADBIN_FOLDER="Bin"
	FCAS_RADPROFILES_FOLDER="Profiles"
	FCAS_RADSOURCE_FOLDER="Source"
	FCASCTL_PARENT_FOLDER="/usr/local"
	
	VOLUMES_PARENT="$SERVICE_FOLDER"
	VOLUMES_PATH="$VOLUMES_PARENT/Volumes"
	MASTER_FOLDER="$VOLUMES_PATH/Master"
	
	MY_HOME="/users"
	MY_TEMP_FILES="/tmp/.firstclass_tempfiles"
else
	#_FC_PLATFORM="`uname -s`"
	_FC_PLATFORM='Linux'
	MY_FILES="$INSTALL_DIR/files"
	MY_TEMP_FILES="$MY_FILES/.firstclass_tempfiles"
	MY_GROUP="adm"
	SERVICE_PARENT="/opt"
	SERVICE_FOLDER="$SERVICE_PARENT/fcsd"
	ARCHIVE_FOLDER="archives"
	if [ "$FCAS_Custom_Path" = "" ]; then
		FCAS_SERVICE_FOLDER="$SERVICE_PARENT/fcas"
	else
		FCAS_SERVICE_FOLDER="$FCAS_Custom_Path"
	fi
	FCDS_SERVICE_FOLDER="$SERVICE_PARENT/fcds"
	FCDSCTL_PARENT_FOLDER="/usr/sbin"
	FCAS_RAD_FOLDER="fcrad"
	FCAS_RADBIN_FOLDER="bin"
	FCAS_RADPROFILES_FOLDER="profiles"
	FCAS_RADSOURCE_FOLDER="source"
	FCASCTL_PARENT_FOLDER="/usr/sbin"
	
	VOLUMES_PARENT="/var$SERVICE_FOLDER"
	VOLUMES_PATH="$VOLUMES_PARENT/volumes"
	MASTER_FOLDER="$VOLUMES_PATH/master"
	
	MY_HOME="/home"
	KDESKTOP="$MY_HOME/$MY_USER/Desktop"
	GDESKTOP="$MY_HOME/$MY_USER/.gnome-desktop"
	KICONS16="/usr/share/icons/hicolor/16x16/apps"
	KICONS="/usr/share/icons/hicolor/32x32/apps"
	GICONS="/usr/share/pixmaps"
	SUDOERS="/etc/sudoers"

fi


FCSD_PATH="$SERVICE_FOLDER/$FCSD_NAME"
FCISD_PATH="$SERVICE_FOLDER/$FCISD_NAME"
FILE_ARCHIVE_FOLDER="$SERVICE_FOLDER/archives"
FCSDREZ_PATH="$FCSD_PATH.rez"
FCISDREZ_PATH="$FCISD_PATH.rez"
SET_APP_PERMISSIONS="1"
FCPUTIL_PATH="$SERVICE_FOLDER/$FCPUTIL_NAME"
FCPUTILREZ_PATH="$FCPUTIL_PATH.rez"

FCPUTILFC_PATH="$FCPUTIL_PATH.fc"

PRIMARY_FCNS="$MASTER_FOLDER/fcns"
PRIMARY_FID="$PRIMARY_FCNS/volume.fid"
VER_TXT="$PRIMARY_FCNS/ver.txt"
BATCH_FOLDER="$PRIMARY_FCNS/server/batch"
BATCH_FILES_INSTALLED="0"
BAFILE="$BATCH_FOLDER/install.ba9"
BASIC_IS_FORM="Internet Services:Basic Internet Setup"
MSL_IS_FORM="Internet Services:Multiple Sites & Languages"
SITEPREF_IS_FORM="Internet Services:www:main site:.sitepref"


BRAND_FILE="$MY_FILES/.brand_labels"
IFCONFIG="/sbin/ifconfig"
NETCARD="eth0"



FCNSBUS_TAR="$MY_FILES/fcnsbus.tar.gz"
FCNSEDU_TAR="$MY_FILES/fcnsedu.tar.gz"
FCNSARCH_TAR="$MY_FILES/fcnsarch.tar.gz"
FCNSOTSM_TAR="$MY_FILES/fcnsotsm.tar.gz"
UPGRADE_TAR="$MY_FILES/upgrade.tar.gz"
ADDON_TAR="$MY_FILES/addon.tar.gz"
FCISX_TAR="$MY_FILES/fcisx.tar.gz"
CSDESKTOP_TAR="$MY_FILES/csdesk.tar.gz"
ISDESKTOP_TAR="$MY_FILES/isdesk.tar.gz"
UPDATE_DESKTOP="1"
CTL_FOLDER="/usr/local"
NOW='date +%H:%M:%S'
UNKNOWN_VER="unknown"
UNKNOWN_ADDON="Add-On Component"
INETCF_FILE="inetsvcs.cf"
INETCF_PREV="inetsvcs_previous.cf"
INETFC_FILE="inetsvcs.fc"
TEMP_INST="_full_install_only_"
myUserIsSudoer="1"
myRetries=0

APPTYPE32INTEL="32-bit_Intel"
APPTYPE64INTEL="64-bit_Intel"
CPUTYPE32INTEL="32-Bit_Intel"
CPUTYPE64INTEL="64-Bit_Intel"
CPUTYPE32PPC="32-Bit_PPC"

OSXTYPE32PPC="32-bit PPC only"
OSXTYPE32INTEL="32-bit Intel only"
OSXTYPE32UNI="32-bit PPC/Intel"
OSXTYPE64INTEL="64-Bit Intel only"
APPTYPE64GENERAL="General 64-Bit only"

#
# In the following, 0 means prompt the user
VERIFY_PO=0
#

#
# To be defined in the optionally included $ADDON_SCRIPT
ADD_ON_NAME="not defined"
INSTALL_ADDON_EXECUTABLES=0


. .includes/branding_function.sh
. .includes/log_function.sh
. .includes/display_txt_functions.sh
. .includes/version_info_functions.sh
. .includes/prereq_functions.sh
. .includes/installer_setup_functions.sh
. .includes/install_file_function.sh
. .includes/addon_functions.sh
. .includes/installer_option_functions.sh
. .includes/core_server_install.sh
. .includes/fcis_install.sh
. .includes/desktop_update_functions.sh
. .includes/eula_functions.sh
. .includes/set_permission_functions.sh
. .includes/fcns_update_functions.sh
. .includes/installer_cleanup_functions.sh
