###############################################################################
#
# Open iT Patch definition
#


# Stop reporting server
stop
{
	error=warning
	module=reportingserver
}

# Wait for all previously signalled programs to stop
waitstop
{
	error=fatal
	timeout=60
	kill=no
}

# Install PHP files
installfromdir
{
	error=fatal
	source=web/php/
	target=%installdir%/ReportingServer/
}

# Install Perl files
installfromdir
{
	error=fatal
	source=web/lib
	target=%installdir%/lib/
}

# Install PHP 5.6.30 binaries
installfromdir
{
	error=fatal
	source=bin/php/
	target=%installdir%/External/PHP/
}

# Install Apache 2.4.25 and OpenSSL 1.0.2k binaries
installfromdir
{
	error=fatal
	source=bin/apache/
	target=%installdir%/External/Apache/
}

# Update menus.xml
installfromdir
{
	error=fatal
	source=conf/
	target=%confdir%/
}


# Start reportingserver
start
{
	error=warning
	module=reportingserver
}