This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Reply
Thanks given by:
#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
Thanks given by:
#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!
Reply
Thanks given by:
#4
RE: Help Development [/deploy/install.run]
Does not work at installation time.
I will do otherwise.
Reply
Thanks given by:
#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
Thanks given by:


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

Forum Jump:


Users browsing this thread: 2 Guest(s)