- fixing the "Could not open input file: [...]/install_scripts/configure install" issue in ApsInstaller
This commit is contained in:
@@ -135,10 +135,20 @@ class ApsInstaller extends ApsParser
|
|||||||
{
|
{
|
||||||
//setup right path and run installation script
|
//setup right path and run installation script
|
||||||
|
|
||||||
|
if(!is_dir($this->RealPath . $this->DomainPath . '/install_scripts/'))
|
||||||
|
{
|
||||||
|
echo 'Directory: '. $this->RealPath . $this->DomainPath . '/install_scripts/ does not exist';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
chdir($this->RealPath . $this->DomainPath . '/install_scripts/');
|
chdir($this->RealPath . $this->DomainPath . '/install_scripts/');
|
||||||
$Return = array();
|
$Return = array();
|
||||||
$ReturnStatus = 0;
|
$ReturnStatus = 0;
|
||||||
$Return = safe_exec('php ' . escapeshellarg($this->RealPath . $this->DomainPath . '/install_scripts/configure install'), $ReturnStatus);
|
|
||||||
|
// make configure-script executable
|
||||||
|
chmod($this->RealPath . $this->DomainPath . '/install_scripts/configure', 0755);
|
||||||
|
|
||||||
|
$Return = safe_exec('php ' . escapeshellarg($this->RealPath . $this->DomainPath . '/install_scripts/configure') . ' install', $ReturnStatus);
|
||||||
|
|
||||||
if($ReturnStatus != 0)
|
if($ReturnStatus != 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user