Help Development [/deploy/install.run]
#1
Help Development [/deploy/install.run]
I am developing some modules ...

All is right with the module ...

The only problem was the /deploy/install.run

The install.run file should run my script, but at the time of module installation it does not run.

The php code in the install.run, there is no error.

Could anyone help?

Thank U! Smile
 By: Cantalupo
Reply
#2
RE: Help Development [/deploy/install.run]
PHP Code:
<?php
// Function to Unzip
function UnZip(){
 
   global $controller;
 
   $zip = new ZipArchive;
 
   $res $zip->open('modules/'.$controller->GetControllerRequest('URL''module').'/apps/filename.zip');
 
   if ($res === TRUE) {
        
$zip->extractTo('etc/apps/chive');
        
$zip->close();
        return 
true;
     } else {
         return 
false;
 
   }
}

// Un-Compressing The ZIP Archive

if (UnZip() == 'true'){
 
   echo "Unzip was successful";
 
   // do something else?
    } else {
    echo "Unzip was not successful";
    // exit or retry?
}
?>

Ripped this out of Sentastico, untested for your use.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#3
RE: Help Development [/deploy/install.run]
Already created this part if the folder you created, do not perform the function.
Still, not executed during module installation, then, with the php extension work.

But I'll see if it will run at installation time, with these new rejustes.
Thank U!
 By: Cantalupo
Reply
#4
RE: Help Development [/deploy/install.run]
Does not work at installation time.
I will do otherwise.
 By: Cantalupo
Reply
#5
RE: Help Development [/deploy/install.run]
Ok, well, hope you get it figured out Wink
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
apt-get install mod_ssl ERROR CMs222 9 32 ,163 11-11-2022, 09:14 PM
Last Post: zustudios
Install guide wget over http? edavidf 5 13 ,461 12-15-2020, 07:07 PM
Last Post: jibranahmed
SSL install breaks apache service EGOSKY123 1 5 ,509 10-28-2020, 12:12 AM
Last Post: iraqiboy90

Forum Jump:


Users browsing this thread: 1 Guest(s)